2.3. Example solutions
2.3.1 Get data from LogisticUnits parameter
Use the Get() method to read the parameter:
LogisticUnits.Get()
Example:
protected override void Execute() { // Parameters in scope Session session = GetScopeParameter("Session") as Session; ISboProviderService sboProviderService = GetScopeParameter("<WwfService>ISboService") as ISboProviderService; foreach(LogisticUnitGoodsReceipt LUGR in LogisticUnits.Get()) { s_log.Error("CHECK DATA IN LOG - SSCC: " + LUGR.SSCC); foreach (LogisticUnitItemGoodReceipt LIGR in LUGR.ItemsOnLogisticUnit) { s_log.Error("CHECK DATA IN LOG - ItemCode: " + LIGR.ItemCode); s_log.Error("CHECK DATA IN LOG - Quantity: " + LIGR.Quantity.ToString()); foreach (PackagingTypeInfo P in LIGR.FullListOfPackagingTypes){ s_log.Error("CHECK DATA IN LOG - Uom: " + P.PackagingTypeName); s_log.Error("CHECK DATA IN LOG - Quantity: " + P.Quantity.ToString()); } } } }