public override Microsoft.XLANGs.Core.PortBase Clone() { PortType_SendPip4C1Message p = new PortType_SendPip4C1Message(this); return p; }
public Microsoft.XLANGs.Core.StopConditions segment1(Microsoft.XLANGs.Core.StopConditions stopOn) { Microsoft.XLANGs.Core.Envelope __msgEnv__ = null; bool __condition__; Microsoft.XLANGs.Core.Segment __seg__ = _segments[1]; Microsoft.XLANGs.Core.Context __ctx__ = (Microsoft.XLANGs.Core.Context)_stateMgrs[1]; __SZDSOI_Orchestration_root_0 __ctx0__ = (__SZDSOI_Orchestration_root_0)_stateMgrs[0]; __SZDSOI_Orchestration_1 __ctx1__ = (__SZDSOI_Orchestration_1)_stateMgrs[1]; switch (__seg__.Progress) { case 0: __ctx1__.__SubmitRNIF1 = default(Microsoft.Solutions.BTARN.Shared.SubmitRNIF); __ctx1__.__strPipMessageFore2open = default(System.String); __ctx1__.__pipInstanceMessageIdFore2open = default(System.String); __ctx1__.__pipInstanceMessageIdForSTX = default(System.String); __ctx1__.__pipInstanceIdentifierFore2open = default(System.String); __ctx1__.__SubmitRNIF = default(Microsoft.Solutions.BTARN.Shared.SubmitRNIF); __ctx1__.__Increase = default(System.Int32); __ctx1__.__CountStr = default(System.String); __ctx1__.__Count = default(System.Int32); __ctx1__.__pipInstanceIdentifierForSTX = default(System.String); __ctx1__.__strPipMessageForSTX = default(System.String); __ctx1__.__SCHEDULELocation = default(System.String); __ctx__.PrologueCompleted = true; if ( !PostProgressInc( __seg__, __ctx__, 1 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 1; case 1: if ( !PreProgressInc( __seg__, __ctx__, 2 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[0],__eventData[0],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 2; case 2: if ( !PreProgressInc( __seg__, __ctx__, 3 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[1],__eventData[1],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 3; case 3: if (!ReceiveInventoryMessage.GetMessageId(__ctx0__.__subWrapper0.getSubscription(this), __seg__, __ctx1__, out __msgEnv__)) return Microsoft.XLANGs.Core.StopConditions.Blocked; if (__ctx1__.__InventoryReportMessage != null) __ctx1__.UnrefMessage(__ctx1__.__InventoryReportMessage); __ctx1__.__InventoryReportMessage = new __messagetype_Kaifa_B2B_Schemas_Wms_InventoryReport("InventoryReportMessage", __ctx1__); __ctx1__.RefMessage(__ctx1__.__InventoryReportMessage); ReceiveInventoryMessage.ReceiveMessage(0, __msgEnv__, __ctx1__.__InventoryReportMessage, null, (Microsoft.XLANGs.Core.Context)_stateMgrs[1], __seg__); if (ReceiveInventoryMessage != null) { ReceiveInventoryMessage.Close(__ctx1__, __seg__); ReceiveInventoryMessage = null; } if ( !PostProgressInc( __seg__, __ctx__, 4 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 4; case 4: if ( !PreProgressInc( __seg__, __ctx__, 5 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; { Microsoft.XLANGs.RuntimeTypes.EventData __edata = new Microsoft.XLANGs.RuntimeTypes.EventData(Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.Receive); __edata.Messages.Add(__ctx1__.__InventoryReportMessage); __edata.PortName = @"ReceiveInventoryMessage"; Tracker.FireEvent(__eventLocations[2],__edata,_stateMgrs[1].TrackDataStream ); } if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 5; case 5: __ctx1__.__SubmitRNIF1 = new Microsoft.Solutions.BTARN.Shared.SubmitRNIF(); if ( !PostProgressInc( __seg__, __ctx__, 6 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 6; case 6: __ctx1__.__strPipMessageFore2open = ""; if ( !PostProgressInc( __seg__, __ctx__, 7 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 7; case 7: __ctx1__.__pipInstanceMessageIdFore2open = ""; if ( !PostProgressInc( __seg__, __ctx__, 8 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 8; case 8: __ctx1__.__pipInstanceMessageIdForSTX = ""; if ( !PostProgressInc( __seg__, __ctx__, 9 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 9; case 9: __ctx1__.__pipInstanceIdentifierFore2open = ""; if ( !PostProgressInc( __seg__, __ctx__, 10 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 10; case 10: __ctx1__.__SubmitRNIF = new Microsoft.Solutions.BTARN.Shared.SubmitRNIF(); if ( !PostProgressInc( __seg__, __ctx__, 11 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 11; case 11: __ctx1__.__CountStr = ""; if ( !PostProgressInc( __seg__, __ctx__, 12 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 12; case 12: __ctx1__.__pipInstanceIdentifierForSTX = ""; if ( !PostProgressInc( __seg__, __ctx__, 13 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 13; case 13: __ctx1__.__strPipMessageForSTX = ""; if ( !PostProgressInc( __seg__, __ctx__, 14 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 14; case 14: __ctx1__.__SCHEDULELocation = ""; if ( !PostProgressInc( __seg__, __ctx__, 15 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 15; case 15: if ( !PreProgressInc( __seg__, __ctx__, 16 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[4],__eventData[2],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 16; case 16: __ctx1__.__Count = (System.Int32)Microsoft.XLANGs.Core.Part.XPathLoad(__ctx1__.__InventoryReportMessage.part, "count(/*[local-name()='InventoryReport' and namespace-uri()='http://kaifa.b2b.schemas/InventoryReport']/*[local-name()='VendorInventoryReport' and namespace-uri()='http://kaifa.b2b.schemas/InventoryReport'])", typeof(System.Int32)); if ( !PostProgressInc( __seg__, __ctx__, 17 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 17; case 17: if ( !PreProgressInc( __seg__, __ctx__, 18 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[5],__eventData[3],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 18; case 18: __ctx1__.__CountStr = __ctx1__.__Count.ToString(); if ( !PostProgressInc( __seg__, __ctx__, 19 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 19; case 19: __ctx1__.__Increase = 1; if ( !PostProgressInc( __seg__, __ctx__, 20 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 20; case 20: if ( !PreProgressInc( __seg__, __ctx__, 21 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[6],__eventData[2],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 21; case 21: __ctx1__.__SCHEDULELocation = (System.String)__ctx1__.__InventoryReportMessage.GetPropertyValueThrows(typeof(BTS.InboundTransportLocation)); if ( !PostProgressInc( __seg__, __ctx__, 22 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 22; case 22: if ( !PreProgressInc( __seg__, __ctx__, 23 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[7],__eventData[3],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 23; case 23: if ( !PreProgressInc( __seg__, __ctx__, 24 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[8],__eventData[4],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 24; case 24: __condition__ = __ctx1__.__Increase <= __ctx1__.__Count; if (!__condition__) { if ( !PostProgressInc( __seg__, __ctx__, 37 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 37; } if ( !PostProgressInc( __seg__, __ctx__, 25 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 25; case 25: if ( !PreProgressInc( __seg__, __ctx__, 26 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[8],__eventData[5],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 26; case 26: if ( !PreProgressInc( __seg__, __ctx__, 27 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[9],__eventData[6],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 27; case 27: { __messagetype_Kaifa_B2B_Schemas_Wms_VendorInventoryReport __VendorReportMessage = new __messagetype_Kaifa_B2B_Schemas_Wms_VendorInventoryReport("VendorReportMessage", __ctx1__); __ctx1__.__CountStr = __ctx1__.__Increase.ToString(); __VendorReportMessage.part.XPathAssign(__ctx1__.__InventoryReportMessage.part, "/*[local-name()='InventoryReport' and namespace-uri()='http://kaifa.b2b.schemas/InventoryReport']/*[local-name()='VendorInventoryReport' and namespace-uri()='http://kaifa.b2b.schemas/InventoryReport'][" + __ctx1__.__CountStr + "]"); if (__ctx1__.__VendorReportMessage != null) __ctx1__.UnrefMessage(__ctx1__.__VendorReportMessage); __ctx1__.__VendorReportMessage = __VendorReportMessage; __ctx1__.RefMessage(__ctx1__.__VendorReportMessage); } __ctx1__.__VendorReportMessage.ConstructionCompleteEvent(false); if ( !PostProgressInc( __seg__, __ctx__, 28 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 28; case 28: if ( !PreProgressInc( __seg__, __ctx__, 29 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; { Microsoft.XLANGs.RuntimeTypes.EventData __edata = new Microsoft.XLANGs.RuntimeTypes.EventData(Microsoft.XLANGs.RuntimeTypes.Operation.End | Microsoft.XLANGs.RuntimeTypes.Operation.Construct); __edata.Messages.Add(__ctx1__.__VendorReportMessage); Tracker.FireEvent(__eventLocations[10],__edata,_stateMgrs[1].TrackDataStream ); } if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 29; case 29: if ( !PreProgressInc( __seg__, __ctx__, 30 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[11],__eventData[7],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 30; case 30: __seg__.RunSegments(new Microsoft.XLANGs.Core.Segment[] {_segments[2], _segments[3]}, this); if ( !PostProgressInc( __seg__, __ctx__, 31 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; return Microsoft.XLANGs.Core.StopConditions.Blocked; case 31: if ( !PreProgressInc( __seg__, __ctx__, 32 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; if (__ctx1__ != null && __ctx1__.__VendorReportMessage != null) { __ctx1__.UnrefMessage(__ctx1__.__VendorReportMessage); __ctx1__.__VendorReportMessage = null; } Tracker.FireEvent(__eventLocations[12],__eventData[11],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 32; case 32: if ( !PreProgressInc( __seg__, __ctx__, 33 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[37],__eventData[2],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 33; case 33: __ctx1__.__Increase = __ctx1__.__Increase + 1; if ( !PostProgressInc( __seg__, __ctx__, 34 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 34; case 34: if ( !PreProgressInc( __seg__, __ctx__, 35 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[38],__eventData[3],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 35; case 35: if ( !PreProgressInc( __seg__, __ctx__, 36 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[39],__eventData[12],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 36; case 36: if ( !PostProgressInc( __seg__, __ctx__, 24 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 24; case 37: if ( !PreProgressInc( __seg__, __ctx__, 38 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; if (__ctx1__ != null) __ctx1__.__SCHEDULELocation = null; if (__ctx1__ != null) __ctx1__.__strPipMessageForSTX = null; if (__ctx1__ != null) __ctx1__.__pipInstanceIdentifierForSTX = null; if (__ctx1__ != null) __ctx1__.__CountStr = null; if (__ctx1__ != null) __ctx1__.__SubmitRNIF = null; if (__ctx1__ != null) __ctx1__.__pipInstanceIdentifierFore2open = null; if (__ctx1__ != null) __ctx1__.__pipInstanceMessageIdForSTX = null; if (__ctx1__ != null) __ctx1__.__pipInstanceMessageIdFore2open = null; if (__ctx1__ != null) __ctx1__.__strPipMessageFore2open = null; if (__ctx1__ != null) __ctx1__.__SubmitRNIF1 = null; if (__ctx1__ != null && __ctx1__.__InventoryReportMessage != null) { __ctx1__.UnrefMessage(__ctx1__.__InventoryReportMessage); __ctx1__.__InventoryReportMessage = null; } if (SendPip4C1Message != null) { SendPip4C1Message.Close(__ctx1__, __seg__); SendPip4C1Message = null; } Tracker.FireEvent(__eventLocations[39],__eventData[13],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 38; case 38: if ( !PreProgressInc( __seg__, __ctx__, 39 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; Tracker.FireEvent(__eventLocations[3],__eventData[14],_stateMgrs[1].TrackDataStream ); if (IsDebugged) return Microsoft.XLANGs.Core.StopConditions.InBreakpoint; goto case 39; case 39: if (!__ctx1__.CleanupAndPrepareToCommit(__seg__)) return Microsoft.XLANGs.Core.StopConditions.Blocked; if ( !PostProgressInc( __seg__, __ctx__, 40 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 40; case 40: if ( !PreProgressInc( __seg__, __ctx__, 41 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; __ctx1__.OnCommit(); goto case 41; case 41: __seg__.SegmentDone(); _segments[0].PredecessorDone(this); break; } return Microsoft.XLANGs.Core.StopConditions.Completed; }
public PortType_SendPip4C1Message(PortType_SendPip4C1Message p) : base(p) { }
public Microsoft.XLANGs.Core.StopConditions segment0(Microsoft.XLANGs.Core.StopConditions stopOn) { Microsoft.XLANGs.Core.Segment __seg__ = _segments[0]; Microsoft.XLANGs.Core.Context __ctx__ = (Microsoft.XLANGs.Core.Context)_stateMgrs[0]; __SZDSOI_Orchestration_root_0 __ctx0__ = (__SZDSOI_Orchestration_root_0)_stateMgrs[0]; __SZDSOI_Orchestration_1 __ctx1__ = (__SZDSOI_Orchestration_1)_stateMgrs[1]; switch (__seg__.Progress) { case 0: ReceiveInventoryMessage = new PortType_ReceiveInventoryMessage(0, this); SendPip4C1Message = new PortType_SendPip4C1Message(1, this); __ctx__.PrologueCompleted = true; __ctx0__.__subWrapper0 = new Microsoft.XLANGs.Core.SubscriptionWrapper(ActivationSubGuids[0], ReceiveInventoryMessage, this); if ( !PostProgressInc( __seg__, __ctx__, 1 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; if ((stopOn & Microsoft.XLANGs.Core.StopConditions.Initialized) != 0) return Microsoft.XLANGs.Core.StopConditions.Initialized; goto case 1; case 1: __ctx1__ = new __SZDSOI_Orchestration_1(this); _stateMgrs[1] = __ctx1__; if ( !PostProgressInc( __seg__, __ctx__, 2 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 2; case 2: __ctx0__.StartContext(__seg__, __ctx1__); if ( !PostProgressInc( __seg__, __ctx__, 3 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; return Microsoft.XLANGs.Core.StopConditions.Blocked; case 3: if (!__ctx0__.CleanupAndPrepareToCommit(__seg__)) return Microsoft.XLANGs.Core.StopConditions.Blocked; if ( !PostProgressInc( __seg__, __ctx__, 4 ) ) return Microsoft.XLANGs.Core.StopConditions.Paused; goto case 4; case 4: __ctx1__.Finally(); ServiceDone(__seg__, (Microsoft.XLANGs.Core.Context)_stateMgrs[0]); __ctx0__.OnCommit(); break; } return Microsoft.XLANGs.Core.StopConditions.Completed; }