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]; __BizTalk_Orchestration1_1 __ctx1__ = (__BizTalk_Orchestration1_1)_stateMgrs[1]; __BizTalk_Orchestration1_root_0 __ctx0__ = (__BizTalk_Orchestration1_root_0)_stateMgrs[0]; switch (__seg__.Progress) { case 0: Port_1 = new PortType_1(0, this); Port_2 = new PortType_2(1, this); __ctx__.PrologueCompleted = true; __ctx0__.__subWrapper0 = new Microsoft.XLANGs.Core.SubscriptionWrapper(ActivationSubGuids[0], Port_1, 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 __BizTalk_Orchestration1_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); }
public override void Finally() { BizTalk_Orchestration1 __svc__ = (BizTalk_Orchestration1)_service; __BizTalk_Orchestration1_1 __ctx1__ = (__BizTalk_Orchestration1_1)(__svc__._stateMgrs[1]); if (__ctx1__ != null && __ctx1__.__IN != null) { __ctx1__.UnrefMessage(__ctx1__.__IN); __ctx1__.__IN = null; } base.Finally(); }
public override void Finally() { BizTalk_Orchestration1 __svc__ = (BizTalk_Orchestration1)_service; __BizTalk_Orchestration1_1 __ctx1__ = (__BizTalk_Orchestration1_1)(__svc__._stateMgrs[1]); if (__ctx1__ != null) { __ctx1__.__VarXmldoc = null; } if (__ctx1__ != null && __ctx1__.__Billing != null) { __ctx1__.UnrefMessage(__ctx1__.__Billing); __ctx1__.__Billing = null; } if (__ctx1__ != null && __ctx1__.__Shipping != null) { __ctx1__.UnrefMessage(__ctx1__.__Shipping); __ctx1__.__Shipping = null; } base.Finally(); }
public Microsoft.XLANGs.Core.StopConditions segment1(Microsoft.XLANGs.Core.StopConditions stopOn) { Microsoft.XLANGs.Core.Envelope __msgEnv__ = null; Microsoft.XLANGs.Core.Segment __seg__ = _segments[1]; Microsoft.XLANGs.Core.Context __ctx__ = (Microsoft.XLANGs.Core.Context)_stateMgrs[1]; __BizTalk_Orchestration1_1 __ctx1__ = (__BizTalk_Orchestration1_1)_stateMgrs[1]; __BizTalk_Orchestration1_root_0 __ctx0__ = (__BizTalk_Orchestration1_root_0)_stateMgrs[0]; switch (__seg__.Progress) { case 0: __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 (!Port_1.GetMessageId(__ctx0__.__subWrapper0.getSubscription(this), __seg__, __ctx1__, out __msgEnv__)) { return(Microsoft.XLANGs.Core.StopConditions.Blocked); } if (__ctx1__.__Xml_msg != null) { __ctx1__.UnrefMessage(__ctx1__.__Xml_msg); } __ctx1__.__Xml_msg = new __messagetype_SQl_ins_Schema_XML("Xml_msg", __ctx1__); __ctx1__.RefMessage(__ctx1__.__Xml_msg); Port_1.ReceiveMessage(0, __msgEnv__, __ctx1__.__Xml_msg, null, (Microsoft.XLANGs.Core.Context)_stateMgrs[1], __seg__); if (Port_1 != null) { Port_1.Close(__ctx1__, __seg__); Port_1 = 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__.__Xml_msg); __edata.PortName = @"Port_1"; Tracker.FireEvent(__eventLocations[2], __edata, _stateMgrs[1].TrackDataStream); } if (IsDebugged) { return(Microsoft.XLANGs.Core.StopConditions.InBreakpoint); } goto case 5; case 5: if (!PreProgressInc(__seg__, __ctx__, 6)) { return(Microsoft.XLANGs.Core.StopConditions.Paused); } Tracker.FireEvent(__eventLocations[3], __eventData[2], _stateMgrs[1].TrackDataStream); if (IsDebugged) { return(Microsoft.XLANGs.Core.StopConditions.InBreakpoint); } goto case 6; case 6: { __messagetype_SQl_ins_TypedProcedure_dbo_Usp_name_insert __Sql_msg = new __messagetype_SQl_ins_TypedProcedure_dbo_Usp_name_insert("Sql_msg", __ctx1__); ApplyTransform(typeof(SQl_ins.Transform_1), new object[] { __Sql_msg.part }, new object[] { __ctx1__.__Xml_msg.part }); if (__ctx1__.__Sql_msg != null) { __ctx1__.UnrefMessage(__ctx1__.__Sql_msg); } __ctx1__.__Sql_msg = __Sql_msg; __ctx1__.RefMessage(__ctx1__.__Sql_msg); } __ctx1__.__Sql_msg.ConstructionCompleteEvent(true); if (!PostProgressInc(__seg__, __ctx__, 7)) { return(Microsoft.XLANGs.Core.StopConditions.Paused); } goto case 7; case 7: if (!PreProgressInc(__seg__, __ctx__, 8)) { 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__.__Sql_msg); __edata.Messages.Add(__ctx1__.__Xml_msg); Tracker.FireEvent(__eventLocations[4], __edata, _stateMgrs[1].TrackDataStream); } if (__ctx1__ != null && __ctx1__.__Xml_msg != null) { __ctx1__.UnrefMessage(__ctx1__.__Xml_msg); __ctx1__.__Xml_msg = null; } if (IsDebugged) { return(Microsoft.XLANGs.Core.StopConditions.InBreakpoint); } goto case 8; case 8: if (!PreProgressInc(__seg__, __ctx__, 9)) { 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 9; case 9: if (!__ctx1__.PrepareToPendingCommit(__seg__)) { return(Microsoft.XLANGs.Core.StopConditions.Blocked); } if (!PostProgressInc(__seg__, __ctx__, 10)) { return(Microsoft.XLANGs.Core.StopConditions.Paused); } goto case 10; case 10: if (!PreProgressInc(__seg__, __ctx__, 11)) { return(Microsoft.XLANGs.Core.StopConditions.Paused); } Port_2.SendMessage(0, __ctx1__.__Sql_msg, null, null, __ctx1__, __seg__, Microsoft.XLANGs.Core.ActivityFlags.NextActivityPersists); if (Port_2 != null) { Port_2.Close(__ctx1__, __seg__); Port_2 = null; } if ((stopOn & Microsoft.XLANGs.Core.StopConditions.OutgoingRqst) != 0) { return(Microsoft.XLANGs.Core.StopConditions.OutgoingRqst); } goto case 11; case 11: if (!PreProgressInc(__seg__, __ctx__, 12)) { 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.Send); __edata.Messages.Add(__ctx1__.__Sql_msg); __edata.PortName = @"Port_2"; Tracker.FireEvent(__eventLocations[6], __edata, _stateMgrs[1].TrackDataStream); } if (__ctx1__ != null && __ctx1__.__Sql_msg != null) { __ctx1__.UnrefMessage(__ctx1__.__Sql_msg); __ctx1__.__Sql_msg = null; } if (IsDebugged) { return(Microsoft.XLANGs.Core.StopConditions.InBreakpoint); } goto case 12; case 12: if (!PreProgressInc(__seg__, __ctx__, 13)) { return(Microsoft.XLANGs.Core.StopConditions.Paused); } Tracker.FireEvent(__eventLocations[7], __eventData[4], _stateMgrs[1].TrackDataStream); if (IsDebugged) { return(Microsoft.XLANGs.Core.StopConditions.InBreakpoint); } goto case 13; case 13: if (!__ctx1__.CleanupAndPrepareToCommit(__seg__)) { return(Microsoft.XLANGs.Core.StopConditions.Blocked); } if (!PostProgressInc(__seg__, __ctx__, 14)) { return(Microsoft.XLANGs.Core.StopConditions.Paused); } goto case 14; case 14: if (!PreProgressInc(__seg__, __ctx__, 15)) { return(Microsoft.XLANGs.Core.StopConditions.Paused); } __ctx1__.OnCommit(); goto case 15; case 15: __seg__.SegmentDone(); _segments[0].PredecessorDone(this); break; } return(Microsoft.XLANGs.Core.StopConditions.Completed); }
public Microsoft.XLANGs.Core.StopConditions segment1(Microsoft.XLANGs.Core.StopConditions stopOn) { Microsoft.XLANGs.Core.Envelope __msgEnv__ = null; Microsoft.XLANGs.Core.Segment __seg__ = _segments[1]; Microsoft.XLANGs.Core.Context __ctx__ = (Microsoft.XLANGs.Core.Context)_stateMgrs[1]; __BizTalk_Orchestration1_1 __ctx1__ = (__BizTalk_Orchestration1_1)_stateMgrs[1]; __BizTalk_Orchestration1_root_0 __ctx0__ = (__BizTalk_Orchestration1_root_0)_stateMgrs[0]; switch (__seg__.Progress) { case 0: __ctx1__.__Variable_1 = new Microsoft.XLANGs.RuntimeTypes.XmlDocumentSerializationProxy(); __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 (!Port_1.GetMessageId(__ctx0__.__subWrapper0.getSubscription(this), __seg__, __ctx1__, out __msgEnv__)) { return(Microsoft.XLANGs.Core.StopConditions.Blocked); } if (__ctx1__.__Message_1 != null) { __ctx1__.UnrefMessage(__ctx1__.__Message_1); } __ctx1__.__Message_1 = new __messagetype_Microsoft_XLANGs_BaseTypes_Any("Message_1", __ctx1__); __ctx1__.RefMessage(__ctx1__.__Message_1); Port_1.ReceiveMessage(0, __msgEnv__, __ctx1__.__Message_1, null, (Microsoft.XLANGs.Core.Context)_stateMgrs[1], __seg__); 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__.__Message_1); __edata.PortName = @"Port_1"; Tracker.FireEvent(__eventLocations[2], __edata, _stateMgrs[1].TrackDataStream); } if (__ctx1__ != null && __ctx1__.__Message_1 != null) { __ctx1__.UnrefMessage(__ctx1__.__Message_1); __ctx1__.__Message_1 = null; } if (IsDebugged) { return(Microsoft.XLANGs.Core.StopConditions.InBreakpoint); } goto case 5; case 5: __ctx1__.__Variable_1.UnderlyingXmlDocument = new System.Xml.XmlDocument(); if (!PostProgressInc(__seg__, __ctx__, 6)) { return(Microsoft.XLANGs.Core.StopConditions.Paused); } goto case 6; case 6: if (!PreProgressInc(__seg__, __ctx__, 7)) { 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 7; case 7: { __messagetype_Microsoft_XLANGs_BaseTypes_Any __Message_2 = new __messagetype_Microsoft_XLANGs_BaseTypes_Any("Message_2", __ctx1__); __ctx1__.__Variable_1.UnderlyingXmlDocument.LoadXml("<testRes>hey Whats up !</<testRes>"); __Message_2.part.LoadFrom((System.Xml.XmlDocument)__ctx1__.__Variable_1.UnderlyingXmlDocument); if (__ctx1__ != null) { __ctx1__.__Variable_1 = null; } if (__ctx1__.__Message_2 != null) { __ctx1__.UnrefMessage(__ctx1__.__Message_2); } __ctx1__.__Message_2 = __Message_2; __ctx1__.RefMessage(__ctx1__.__Message_2); } __ctx1__.__Message_2.ConstructionCompleteEvent(false); if (!PostProgressInc(__seg__, __ctx__, 8)) { return(Microsoft.XLANGs.Core.StopConditions.Paused); } goto case 8; case 8: if (!PreProgressInc(__seg__, __ctx__, 9)) { 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__.__Message_2); Tracker.FireEvent(__eventLocations[5], __edata, _stateMgrs[1].TrackDataStream); } if (IsDebugged) { return(Microsoft.XLANGs.Core.StopConditions.InBreakpoint); } goto case 9; case 9: if (!PreProgressInc(__seg__, __ctx__, 10)) { return(Microsoft.XLANGs.Core.StopConditions.Paused); } Tracker.FireEvent(__eventLocations[6], __eventData[3], _stateMgrs[1].TrackDataStream); if (IsDebugged) { return(Microsoft.XLANGs.Core.StopConditions.InBreakpoint); } goto case 10; case 10: if (!__ctx1__.PrepareToPendingCommit(__seg__)) { return(Microsoft.XLANGs.Core.StopConditions.Blocked); } if (!PostProgressInc(__seg__, __ctx__, 11)) { return(Microsoft.XLANGs.Core.StopConditions.Paused); } goto case 11; case 11: if (!PreProgressInc(__seg__, __ctx__, 12)) { return(Microsoft.XLANGs.Core.StopConditions.Paused); } Port_1.SendMessage(0, __ctx1__.__Message_2, null, null, __ctx1__, __seg__, Microsoft.XLANGs.Core.ActivityFlags.NextActivityPersists); if (Port_1 != null) { Port_1.Close(__ctx1__, __seg__); Port_1 = null; } if ((stopOn & Microsoft.XLANGs.Core.StopConditions.OutgoingResp) != 0) { return(Microsoft.XLANGs.Core.StopConditions.OutgoingResp); } goto case 12; case 12: if (!PreProgressInc(__seg__, __ctx__, 13)) { 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.Send); __edata.Messages.Add(__ctx1__.__Message_2); __edata.PortName = @"Port_1"; Tracker.FireEvent(__eventLocations[7], __edata, _stateMgrs[1].TrackDataStream); } if (__ctx1__ != null && __ctx1__.__Message_2 != null) { __ctx1__.UnrefMessage(__ctx1__.__Message_2); __ctx1__.__Message_2 = null; } if (IsDebugged) { return(Microsoft.XLANGs.Core.StopConditions.InBreakpoint); } goto case 13; case 13: if (!PreProgressInc(__seg__, __ctx__, 14)) { return(Microsoft.XLANGs.Core.StopConditions.Paused); } Tracker.FireEvent(__eventLocations[3], __eventData[4], _stateMgrs[1].TrackDataStream); if (IsDebugged) { return(Microsoft.XLANGs.Core.StopConditions.InBreakpoint); } goto case 14; case 14: if (!__ctx1__.CleanupAndPrepareToCommit(__seg__)) { return(Microsoft.XLANGs.Core.StopConditions.Blocked); } 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); } __ctx1__.OnCommit(); goto case 16; case 16: __seg__.SegmentDone(); _segments[0].PredecessorDone(this); break; } return(Microsoft.XLANGs.Core.StopConditions.Completed); }
public Microsoft.XLANGs.Core.StopConditions segment1(Microsoft.XLANGs.Core.StopConditions stopOn) { Microsoft.XLANGs.Core.Envelope __msgEnv__ = null; Microsoft.XLANGs.Core.Segment __seg__ = _segments[1]; Microsoft.XLANGs.Core.Context __ctx__ = (Microsoft.XLANGs.Core.Context)_stateMgrs[1]; __BizTalk_Orchestration1_1 __ctx1__ = (__BizTalk_Orchestration1_1)_stateMgrs[1]; __BizTalk_Orchestration1_root_0 __ctx0__ = (__BizTalk_Orchestration1_root_0)_stateMgrs[0]; switch (__seg__.Progress) { case 0: __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 (!Port_1.GetMessageId(__ctx0__.__subWrapper0.getSubscription(this), __seg__, __ctx1__, out __msgEnv__)) { return(Microsoft.XLANGs.Core.StopConditions.Blocked); } if (__ctx1__.__IN != null) { __ctx1__.UnrefMessage(__ctx1__.__IN); } __ctx1__.__IN = new __messagetype_debacthing_Example_Customer_Document("IN", __ctx1__); __ctx1__.RefMessage(__ctx1__.__IN); Port_1.ReceiveMessage(0, __msgEnv__, __ctx1__.__IN, null, (Microsoft.XLANGs.Core.Context)_stateMgrs[1], __seg__); if (Port_1 != null) { Port_1.Close(__ctx1__, __seg__); Port_1 = 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__.__IN); __edata.PortName = @"Port_1"; Tracker.FireEvent(__eventLocations[2], __edata, _stateMgrs[1].TrackDataStream); } if (IsDebugged) { return(Microsoft.XLANGs.Core.StopConditions.InBreakpoint); } goto case 5; case 5: if (!PreProgressInc(__seg__, __ctx__, 6)) { return(Microsoft.XLANGs.Core.StopConditions.Paused); } Tracker.FireEvent(__eventLocations[3], __eventData[2], _stateMgrs[1].TrackDataStream); if (IsDebugged) { return(Microsoft.XLANGs.Core.StopConditions.InBreakpoint); } goto case 6; case 6: if (!__ctx1__.PrepareToPendingCommit(__seg__)) { return(Microsoft.XLANGs.Core.StopConditions.Blocked); } if (!PostProgressInc(__seg__, __ctx__, 7)) { return(Microsoft.XLANGs.Core.StopConditions.Paused); } goto case 7; case 7: if (!PreProgressInc(__seg__, __ctx__, 8)) { return(Microsoft.XLANGs.Core.StopConditions.Paused); } Port_2.SendMessage(0, __ctx1__.__IN, null, null, __ctx1__, __seg__, Microsoft.XLANGs.Core.ActivityFlags.NextActivityPersists); if (Port_2 != null) { Port_2.Close(__ctx1__, __seg__); Port_2 = null; } if ((stopOn & Microsoft.XLANGs.Core.StopConditions.OutgoingRqst) != 0) { return(Microsoft.XLANGs.Core.StopConditions.OutgoingRqst); } goto case 8; case 8: if (!PreProgressInc(__seg__, __ctx__, 9)) { 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.Send); __edata.Messages.Add(__ctx1__.__IN); __edata.PortName = @"Port_2"; Tracker.FireEvent(__eventLocations[4], __edata, _stateMgrs[1].TrackDataStream); } if (__ctx1__ != null && __ctx1__.__IN != null) { __ctx1__.UnrefMessage(__ctx1__.__IN); __ctx1__.__IN = null; } if (IsDebugged) { return(Microsoft.XLANGs.Core.StopConditions.InBreakpoint); } goto case 9; case 9: if (!PreProgressInc(__seg__, __ctx__, 10)) { 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 10; case 10: if (!__ctx1__.CleanupAndPrepareToCommit(__seg__)) { return(Microsoft.XLANGs.Core.StopConditions.Blocked); } if (!PostProgressInc(__seg__, __ctx__, 11)) { return(Microsoft.XLANGs.Core.StopConditions.Paused); } goto case 11; case 11: if (!PreProgressInc(__seg__, __ctx__, 12)) { return(Microsoft.XLANGs.Core.StopConditions.Paused); } __ctx1__.OnCommit(); goto case 12; case 12: __seg__.SegmentDone(); _segments[0].PredecessorDone(this); break; } return(Microsoft.XLANGs.Core.StopConditions.Completed); }
public Microsoft.XLANGs.Core.StopConditions segment1(Microsoft.XLANGs.Core.StopConditions stopOn) { Microsoft.XLANGs.Core.Envelope __msgEnv__ = null; Microsoft.XLANGs.Core.Segment __seg__ = _segments[1]; Microsoft.XLANGs.Core.Context __ctx__ = (Microsoft.XLANGs.Core.Context)_stateMgrs[1]; __BizTalk_Orchestration1_root_0 __ctx0__ = (__BizTalk_Orchestration1_root_0)_stateMgrs[0]; __BizTalk_Orchestration1_1 __ctx1__ = (__BizTalk_Orchestration1_1)_stateMgrs[1]; switch (__seg__.Progress) { case 0: __ctx1__.__VarXmldoc = new Microsoft.XLANGs.RuntimeTypes.XmlDocumentSerializationProxy(); __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 (!Port_1.GetMessageId(__ctx0__.__subWrapper0.getSubscription(this), __seg__, __ctx1__, out __msgEnv__)) { return(Microsoft.XLANGs.Core.StopConditions.Blocked); } if (__ctx1__.__Billing != null) { __ctx1__.UnrefMessage(__ctx1__.__Billing); } __ctx1__.__Billing = new __messagetype_Typed_messages_BillingAddress("Billing", __ctx1__); __ctx1__.RefMessage(__ctx1__.__Billing); Port_1.ReceiveMessage(0, __msgEnv__, __ctx1__.__Billing, null, (Microsoft.XLANGs.Core.Context)_stateMgrs[1], __seg__); if (Port_1 != null) { Port_1.Close(__ctx1__, __seg__); Port_1 = 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__.__Billing); __edata.PortName = @"Port_1"; Tracker.FireEvent(__eventLocations[2], __edata, _stateMgrs[1].TrackDataStream); } if (IsDebugged) { return(Microsoft.XLANGs.Core.StopConditions.InBreakpoint); } goto case 5; case 5: __ctx1__.__VarXmldoc.UnderlyingXmlDocument = new System.Xml.XmlDocument(); if (!PostProgressInc(__seg__, __ctx__, 6)) { return(Microsoft.XLANGs.Core.StopConditions.Paused); } goto case 6; case 6: if (!PreProgressInc(__seg__, __ctx__, 7)) { 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 7; case 7: { __messagetype_Typed_messages_ShippingAddress __Shipping = new __messagetype_Typed_messages_ShippingAddress("Shipping", __ctx1__); __ctx1__.__VarXmldoc.UnderlyingXmlDocument = new System.Xml.XmlDocument(); __ctx1__.__VarXmldoc.UnderlyingXmlDocument.LoadXml(@"<ns0:Root xmlns:ns0=""http://Typed_messages.BillingAddress""> <Address1>Address1</Address1><State>State</State><City>City</City><Country>Country</Country></ns0:Root>"); __Shipping.part.LoadFrom((System.Xml.XmlDocument)__ctx1__.__VarXmldoc.UnderlyingXmlDocument); if (__ctx1__ != null) { __ctx1__.__VarXmldoc = null; } __Shipping.part.SetDistinguishedField("Address1", (System.String)__ctx1__.__Billing.part.GetDistinguishedField("Address1")); __Shipping.part.SetDistinguishedField("City", (System.String)__ctx1__.__Billing.part.GetDistinguishedField("City")); __Shipping.part.SetDistinguishedField("Country", (System.String)__ctx1__.__Billing.part.GetDistinguishedField("Country")); __Shipping.part.SetDistinguishedField("State", (System.String)__ctx1__.__Billing.part.GetDistinguishedField("State")); if (__ctx1__ != null && __ctx1__.__Billing != null) { __ctx1__.UnrefMessage(__ctx1__.__Billing); __ctx1__.__Billing = null; } if (__ctx1__.__Shipping != null) { __ctx1__.UnrefMessage(__ctx1__.__Shipping); } __ctx1__.__Shipping = __Shipping; __ctx1__.RefMessage(__ctx1__.__Shipping); } __ctx1__.__Shipping.ConstructionCompleteEvent(false); if (!PostProgressInc(__seg__, __ctx__, 8)) { return(Microsoft.XLANGs.Core.StopConditions.Paused); } goto case 8; case 8: if (!PreProgressInc(__seg__, __ctx__, 9)) { 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__.__Shipping); Tracker.FireEvent(__eventLocations[5], __edata, _stateMgrs[1].TrackDataStream); } if (IsDebugged) { return(Microsoft.XLANGs.Core.StopConditions.InBreakpoint); } goto case 9; case 9: if (!PreProgressInc(__seg__, __ctx__, 10)) { return(Microsoft.XLANGs.Core.StopConditions.Paused); } Tracker.FireEvent(__eventLocations[6], __eventData[3], _stateMgrs[1].TrackDataStream); if (IsDebugged) { return(Microsoft.XLANGs.Core.StopConditions.InBreakpoint); } goto case 10; case 10: if (!__ctx1__.PrepareToPendingCommit(__seg__)) { return(Microsoft.XLANGs.Core.StopConditions.Blocked); } if (!PostProgressInc(__seg__, __ctx__, 11)) { return(Microsoft.XLANGs.Core.StopConditions.Paused); } goto case 11; case 11: if (!PreProgressInc(__seg__, __ctx__, 12)) { return(Microsoft.XLANGs.Core.StopConditions.Paused); } Port_2.SendMessage(0, __ctx1__.__Shipping, null, null, __ctx1__, __seg__, Microsoft.XLANGs.Core.ActivityFlags.NextActivityPersists); if (Port_2 != null) { Port_2.Close(__ctx1__, __seg__); Port_2 = null; } if ((stopOn & Microsoft.XLANGs.Core.StopConditions.OutgoingRqst) != 0) { return(Microsoft.XLANGs.Core.StopConditions.OutgoingRqst); } goto case 12; case 12: if (!PreProgressInc(__seg__, __ctx__, 13)) { 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.Send); __edata.Messages.Add(__ctx1__.__Shipping); __edata.PortName = @"Port_2"; Tracker.FireEvent(__eventLocations[7], __edata, _stateMgrs[1].TrackDataStream); } if (__ctx1__ != null && __ctx1__.__Shipping != null) { __ctx1__.UnrefMessage(__ctx1__.__Shipping); __ctx1__.__Shipping = null; } if (IsDebugged) { return(Microsoft.XLANGs.Core.StopConditions.InBreakpoint); } goto case 13; case 13: if (!PreProgressInc(__seg__, __ctx__, 14)) { return(Microsoft.XLANGs.Core.StopConditions.Paused); } Tracker.FireEvent(__eventLocations[3], __eventData[4], _stateMgrs[1].TrackDataStream); if (IsDebugged) { return(Microsoft.XLANGs.Core.StopConditions.InBreakpoint); } goto case 14; case 14: if (!__ctx1__.CleanupAndPrepareToCommit(__seg__)) { return(Microsoft.XLANGs.Core.StopConditions.Blocked); } 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); } __ctx1__.OnCommit(); goto case 16; case 16: __seg__.SegmentDone(); _segments[0].PredecessorDone(this); break; } return(Microsoft.XLANGs.Core.StopConditions.Completed); }