Skip to content

Commit 42c430b

Browse files
committedMay 5, 2023
Message Box direct bound ports
1 parent 2dc753b commit 42c430b

31 files changed

+2791
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.30711.63
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "POC.DirectBoundPorts.RouteMsgBox", "POC.DirectBoundPorts\POC.DirectBoundPorts.RouteMsgBox.btproj", "{06E8F5BD-7CDD-4E14-A539-B41FA2AA3210}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{06E8F5BD-7CDD-4E14-A539-B41FA2AA3210}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{06E8F5BD-7CDD-4E14-A539-B41FA2AA3210}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{06E8F5BD-7CDD-4E14-A539-B41FA2AA3210}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
17+
{06E8F5BD-7CDD-4E14-A539-B41FA2AA3210}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{06E8F5BD-7CDD-4E14-A539-B41FA2AA3210}.Release|Any CPU.Build.0 = Release|Any CPU
19+
{06E8F5BD-7CDD-4E14-A539-B41FA2AA3210}.Release|Any CPU.Deploy.0 = Release|Any CPU
20+
EndGlobalSection
21+
GlobalSection(SolutionProperties) = preSolution
22+
HideSolutionNode = FALSE
23+
EndGlobalSection
24+
GlobalSection(ExtensibilityGlobals) = postSolution
25+
SolutionGuid = {084E81B7-3C53-45E5-8850-F41F2B9193FE}
26+
EndGlobalSection
27+
EndGlobal
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,197 @@
1+
#if __DESIGNER_DATA
2+
#error Do not define __DESIGNER_DATA.
3+
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
4+
<om:MetaModel MajorVersion="1" MinorVersion="3" Core="2b131234-7959-458d-834f-2dc0769ce683" ScheduleModel="66366196-361d-448d-976f-cab5e87496d2" xmlns:om="http://schemas.microsoft.com/BizTalk/2003/DesignerData">
5+
<om:Element Type="Module" OID="ba6c2708-5677-4933-9b1f-e5b98af8dd35" LowerBound="1.1" HigherBound="47.1">
6+
<om:Property Name="ReportToAnalyst" Value="True" />
7+
<om:Property Name="Name" Value="POC.DirectBoundPorts" />
8+
<om:Property Name="Signal" Value="False" />
9+
<om:Element Type="PortType" OID="b170a27c-5827-4119-ba80-0197ba91467d" ParentLink="Module_PortType" LowerBound="4.1" HigherBound="11.1">
10+
<om:Property Name="Synchronous" Value="False" />
11+
<om:Property Name="TypeModifier" Value="Internal" />
12+
<om:Property Name="ReportToAnalyst" Value="True" />
13+
<om:Property Name="Name" Value="EntryPortType" />
14+
<om:Property Name="Signal" Value="False" />
15+
<om:Element Type="OperationDeclaration" OID="056d3189-ac6a-4644-994e-eacf12c59a0b" ParentLink="PortType_OperationDeclaration" LowerBound="6.1" HigherBound="10.1">
16+
<om:Property Name="OperationType" Value="OneWay" />
17+
<om:Property Name="ReportToAnalyst" Value="True" />
18+
<om:Property Name="Name" Value="EntryOp" />
19+
<om:Property Name="Signal" Value="True" />
20+
<om:Element Type="MessageRef" OID="1c82a59d-7024-4efa-9199-6c70a4ca348d" ParentLink="OperationDeclaration_RequestMessageRef" LowerBound="8.13" HigherBound="8.18">
21+
<om:Property Name="Ref" Value="POC.DirectBoundPorts.InMsg" />
22+
<om:Property Name="ReportToAnalyst" Value="True" />
23+
<om:Property Name="Name" Value="Request" />
24+
<om:Property Name="Signal" Value="True" />
25+
</om:Element>
26+
</om:Element>
27+
</om:Element>
28+
<om:Element Type="PortType" OID="60f2333f-e6df-4ff8-a181-9743d84ee021" ParentLink="Module_PortType" LowerBound="11.1" HigherBound="18.1">
29+
<om:Property Name="Synchronous" Value="False" />
30+
<om:Property Name="TypeModifier" Value="Internal" />
31+
<om:Property Name="ReportToAnalyst" Value="True" />
32+
<om:Property Name="Name" Value="SendToMsgBoxPortType" />
33+
<om:Property Name="Signal" Value="False" />
34+
<om:Element Type="OperationDeclaration" OID="e6f6bff1-0be0-414e-99ba-a3819d222a81" ParentLink="PortType_OperationDeclaration" LowerBound="13.1" HigherBound="17.1">
35+
<om:Property Name="OperationType" Value="OneWay" />
36+
<om:Property Name="ReportToAnalyst" Value="True" />
37+
<om:Property Name="Name" Value="SendToMsgBoxOp" />
38+
<om:Property Name="Signal" Value="True" />
39+
<om:Element Type="MessageRef" OID="86772b4d-0d8a-4093-9375-ce252aa5d6d2" ParentLink="OperationDeclaration_RequestMessageRef" LowerBound="15.13" HigherBound="15.25">
40+
<om:Property Name="Ref" Value="POC.DirectBoundPorts.ToBeRouteMsg" />
41+
<om:Property Name="ReportToAnalyst" Value="True" />
42+
<om:Property Name="Name" Value="Request" />
43+
<om:Property Name="Signal" Value="True" />
44+
</om:Element>
45+
</om:Element>
46+
</om:Element>
47+
<om:Element Type="ServiceDeclaration" OID="25307081-4b35-4780-9ad3-039afa6d8a2a" ParentLink="Module_ServiceDeclaration" LowerBound="18.1" HigherBound="46.1">
48+
<om:Property Name="InitializedTransactionType" Value="False" />
49+
<om:Property Name="IsInvokable" Value="False" />
50+
<om:Property Name="TypeModifier" Value="Internal" />
51+
<om:Property Name="ReportToAnalyst" Value="True" />
52+
<om:Property Name="Name" Value="EntryOrchestration" />
53+
<om:Property Name="Signal" Value="False" />
54+
<om:Element Type="VariableDeclaration" OID="34f21f54-5890-428a-93b0-1d363a8344a5" ParentLink="ServiceDeclaration_VariableDeclaration" LowerBound="27.1" HigherBound="28.1">
55+
<om:Property Name="UseDefaultConstructor" Value="True" />
56+
<om:Property Name="Type" Value="System.Xml.XmlDocument" />
57+
<om:Property Name="ParamDirection" Value="In" />
58+
<om:Property Name="ReportToAnalyst" Value="True" />
59+
<om:Property Name="Name" Value="varXML" />
60+
<om:Property Name="Signal" Value="True" />
61+
</om:Element>
62+
<om:Element Type="MessageDeclaration" OID="af69ac24-320e-45ab-b264-038e06bbfc92" ParentLink="ServiceDeclaration_MessageDeclaration" LowerBound="25.1" HigherBound="26.1">
63+
<om:Property Name="Type" Value="POC.DirectBoundPorts.ToBeRouteMsg" />
64+
<om:Property Name="ParamDirection" Value="In" />
65+
<om:Property Name="ReportToAnalyst" Value="True" />
66+
<om:Property Name="Name" Value="msgToBeRouted" />
67+
<om:Property Name="Signal" Value="True" />
68+
</om:Element>
69+
<om:Element Type="MessageDeclaration" OID="8cd1b7d2-deaf-40da-832c-ac48ebfe0e2b" ParentLink="ServiceDeclaration_MessageDeclaration" LowerBound="26.1" HigherBound="27.1">
70+
<om:Property Name="Type" Value="POC.DirectBoundPorts.InMsg" />
71+
<om:Property Name="ParamDirection" Value="In" />
72+
<om:Property Name="ReportToAnalyst" Value="True" />
73+
<om:Property Name="Name" Value="msgIn" />
74+
<om:Property Name="Signal" Value="True" />
75+
</om:Element>
76+
<om:Element Type="ServiceBody" OID="f5d73cdb-e990-413e-b074-0e1319a1f19b" ParentLink="ServiceDeclaration_ServiceBody">
77+
<om:Property Name="Signal" Value="False" />
78+
<om:Element Type="Receive" OID="2e66ce1f-dfb0-4b7b-945d-6b0115168749" ParentLink="ServiceBody_Statement" LowerBound="30.1" HigherBound="33.1">
79+
<om:Property Name="Activate" Value="True" />
80+
<om:Property Name="PortName" Value="EntryPort" />
81+
<om:Property Name="MessageName" Value="msgIn" />
82+
<om:Property Name="OperationName" Value="EntryOp" />
83+
<om:Property Name="OperationMessageName" Value="Request" />
84+
<om:Property Name="ReportToAnalyst" Value="True" />
85+
<om:Property Name="Name" Value="Receive Inbound Msg" />
86+
<om:Property Name="Signal" Value="True" />
87+
</om:Element>
88+
<om:Element Type="Construct" OID="3117430b-7e53-4bbe-bed5-8cadba69bb1a" ParentLink="ServiceBody_Statement" LowerBound="33.1" HigherBound="42.1">
89+
<om:Property Name="ReportToAnalyst" Value="True" />
90+
<om:Property Name="Name" Value="Construct ToBeRouted Message" />
91+
<om:Property Name="Signal" Value="True" />
92+
<om:Element Type="MessageAssignment" OID="332f2c4e-daef-45bf-bb3f-33dabb30999b" ParentLink="ComplexStatement_Statement" LowerBound="36.1" HigherBound="41.1">
93+
<om:Property Name="Expression" Value="varXML = new System.Xml.XmlDocument();&#xD;&#xA;varXML.LoadXml(@&quot;&lt;ns0:ToBeRouteMsg xmlns:ns0=&quot;&quot;http://POC.DirectBoundPorts.ToBeRouteMsg&quot;&quot;&gt;&lt;ByOrch&gt;EntryOrchestration&lt;/ByOrch&gt;&lt;/ns0:ToBeRouteMsg&gt;&quot;);&#xD;&#xA;&#xD;&#xA;msgToBeRouted = varXML;" />
94+
<om:Property Name="ReportToAnalyst" Value="False" />
95+
<om:Property Name="Name" Value="ToBeRouted MsgAssign" />
96+
<om:Property Name="Signal" Value="False" />
97+
</om:Element>
98+
<om:Element Type="MessageRef" OID="fabe5b9e-3f7d-4d2c-9242-f517a855aeb5" ParentLink="Construct_MessageRef" LowerBound="34.23" HigherBound="34.36">
99+
<om:Property Name="Ref" Value="msgToBeRouted" />
100+
<om:Property Name="ReportToAnalyst" Value="True" />
101+
<om:Property Name="Signal" Value="False" />
102+
</om:Element>
103+
</om:Element>
104+
<om:Element Type="Send" OID="1c8e9b93-8395-4457-add2-addda8ea0702" ParentLink="ServiceBody_Statement" LowerBound="42.1" HigherBound="44.1">
105+
<om:Property Name="PortName" Value="SendToMsgBoxPort" />
106+
<om:Property Name="MessageName" Value="msgToBeRouted" />
107+
<om:Property Name="OperationName" Value="SendToMsgBoxOp" />
108+
<om:Property Name="OperationMessageName" Value="Request" />
109+
<om:Property Name="ReportToAnalyst" Value="True" />
110+
<om:Property Name="Name" Value="Send ToMsgBox" />
111+
<om:Property Name="Signal" Value="True" />
112+
</om:Element>
113+
</om:Element>
114+
<om:Element Type="PortDeclaration" OID="19927dd4-eb32-4261-ae51-25cd00a4950f" ParentLink="ServiceDeclaration_PortDeclaration" LowerBound="21.1" HigherBound="23.1">
115+
<om:Property Name="PortModifier" Value="Implements" />
116+
<om:Property Name="Orientation" Value="Left" />
117+
<om:Property Name="PortIndex" Value="-1" />
118+
<om:Property Name="IsWebPort" Value="False" />
119+
<om:Property Name="OrderedDelivery" Value="False" />
120+
<om:Property Name="DeliveryNotification" Value="None" />
121+
<om:Property Name="Type" Value="POC.DirectBoundPorts.EntryPortType" />
122+
<om:Property Name="ParamDirection" Value="In" />
123+
<om:Property Name="ReportToAnalyst" Value="True" />
124+
<om:Property Name="Name" Value="EntryPort" />
125+
<om:Property Name="Signal" Value="False" />
126+
<om:Element Type="LogicalBindingAttribute" OID="0d216521-d1f0-4eac-9ece-11bcc4f00a61" ParentLink="PortDeclaration_CLRAttribute" LowerBound="21.1" HigherBound="22.1">
127+
<om:Property Name="Signal" Value="False" />
128+
</om:Element>
129+
</om:Element>
130+
<om:Element Type="PortDeclaration" OID="344aa124-22a4-421f-a527-97d4803adb3b" ParentLink="ServiceDeclaration_PortDeclaration" LowerBound="23.1" HigherBound="25.1">
131+
<om:Property Name="PortModifier" Value="Uses" />
132+
<om:Property Name="Orientation" Value="Right" />
133+
<om:Property Name="PortIndex" Value="14" />
134+
<om:Property Name="IsWebPort" Value="False" />
135+
<om:Property Name="OrderedDelivery" Value="False" />
136+
<om:Property Name="DeliveryNotification" Value="None" />
137+
<om:Property Name="Type" Value="POC.DirectBoundPorts.SendToMsgBoxPortType" />
138+
<om:Property Name="ParamDirection" Value="In" />
139+
<om:Property Name="ReportToAnalyst" Value="True" />
140+
<om:Property Name="Name" Value="SendToMsgBoxPort" />
141+
<om:Property Name="Signal" Value="False" />
142+
<om:Element Type="DirectBindingAttribute" OID="7a93c6f6-572b-4941-8911-3a4d7649ba7a" ParentLink="PortDeclaration_CLRAttribute" LowerBound="23.1" HigherBound="24.1">
143+
<om:Property Name="DirectBindingType" Value="MessageBox" />
144+
<om:Property Name="Signal" Value="False" />
145+
</om:Element>
146+
</om:Element>
147+
</om:Element>
148+
</om:Element>
149+
</om:MetaModel>
150+
#endif // __DESIGNER_DATA
151+
[Microsoft.XLANGs.BaseTypes.BPELExportable(false)]
152+
module POC.DirectBoundPorts
153+
{
154+
internal porttype EntryPortType
155+
{
156+
oneway EntryOp
157+
{
158+
InMsg
159+
};
160+
};
161+
internal porttype SendToMsgBoxPortType
162+
{
163+
oneway SendToMsgBoxOp
164+
{
165+
ToBeRouteMsg
166+
};
167+
};
168+
[Microsoft.XLANGs.BaseTypes.BPELExportable(false)]
169+
internal service EntryOrchestration
170+
{
171+
[Microsoft.XLANGs.BaseTypes.LogicalBinding()]
172+
port implements EntryPortType EntryPort;
173+
[Microsoft.XLANGs.BaseTypes.DirectBinding()]
174+
port uses SendToMsgBoxPortType SendToMsgBoxPort;
175+
message ToBeRouteMsg msgToBeRouted;
176+
message InMsg msgIn;
177+
System.Xml.XmlDocument varXML;
178+
body ()
179+
{
180+
[Microsoft.XLANGs.BaseTypes.DesignerPosition("2e66ce1f-dfb0-4b7b-945d-6b0115168749")]
181+
activate receive (EntryPort.EntryOp, msgIn);
182+
varXML = new System.Xml.XmlDocument();
183+
[Microsoft.XLANGs.BaseTypes.DesignerPosition("3117430b-7e53-4bbe-bed5-8cadba69bb1a")]
184+
construct msgToBeRouted
185+
{
186+
[Microsoft.XLANGs.BaseTypes.DesignerPosition("332f2c4e-daef-45bf-bb3f-33dabb30999b")]
187+
varXML = new System.Xml.XmlDocument();
188+
varXML.LoadXml(@"<ns0:ToBeRouteMsg xmlns:ns0=""http://POC.DirectBoundPorts.ToBeRouteMsg""><ByOrch>EntryOrchestration</ByOrch></ns0:ToBeRouteMsg>");
189+
190+
msgToBeRouted = varXML;
191+
}
192+
[Microsoft.XLANGs.BaseTypes.DesignerPosition("1c8e9b93-8395-4457-add2-addda8ea0702")]
193+
send (SendToMsgBoxPort.SendToMsgBoxOp, msgToBeRouted);
194+
}
195+
}
196+
}
197+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
namespace POC.DirectBoundPorts {
2+
using Microsoft.XLANGs.BaseTypes;
3+
4+
5+
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.BizTalk.Schema.Compiler", "3.0.1.0")]
6+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7+
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
8+
[SchemaType(SchemaTypeEnum.Document)]
9+
[Schema(@"http://POC.DirectBoundPorts.FinalMsg",@"FinalMsg")]
10+
[System.SerializableAttribute()]
11+
[SchemaRoots(new string[] {@"FinalMsg"})]
12+
public sealed class FinalMsg : Microsoft.XLANGs.BaseTypes.SchemaBase {
13+
14+
[System.NonSerializedAttribute()]
15+
private static object _rawSchema;
16+
17+
[System.NonSerializedAttribute()]
18+
private const string _strSchema = @"<?xml version=""1.0"" encoding=""utf-16""?>
19+
<xs:schema xmlns=""http://POC.DirectBoundPorts.FinalMsg"" xmlns:b=""http://schemas.microsoft.com/BizTalk/2003"" targetNamespace=""http://POC.DirectBoundPorts.FinalMsg"" xmlns:xs=""http://www.w3.org/2001/XMLSchema"">
20+
<xs:element name=""FinalMsg"">
21+
<xs:complexType>
22+
<xs:sequence>
23+
<xs:element name=""MsgResult"" type=""xs:string"" />
24+
</xs:sequence>
25+
</xs:complexType>
26+
</xs:element>
27+
</xs:schema>";
28+
29+
public FinalMsg() {
30+
}
31+
32+
public override string XmlContent {
33+
get {
34+
return _strSchema;
35+
}
36+
}
37+
38+
public override string[] RootNodes {
39+
get {
40+
string[] _RootElements = new string [1];
41+
_RootElements[0] = "FinalMsg";
42+
return _RootElements;
43+
}
44+
}
45+
46+
protected override object RawSchema {
47+
get {
48+
return _rawSchema;
49+
}
50+
set {
51+
_rawSchema = value;
52+
}
53+
}
54+
}
55+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
namespace POC.DirectBoundPorts {
2+
using Microsoft.XLANGs.BaseTypes;
3+
4+
5+
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.BizTalk.Schema.Compiler", "3.0.1.0")]
6+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7+
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
8+
[SchemaType(SchemaTypeEnum.Document)]
9+
[Schema(@"http://POC.DirectBoundPorts.InMsg",@"InMsg")]
10+
[System.SerializableAttribute()]
11+
[SchemaRoots(new string[] {@"InMsg"})]
12+
public sealed class InMsg : Microsoft.XLANGs.BaseTypes.SchemaBase {
13+
14+
[System.NonSerializedAttribute()]
15+
private static object _rawSchema;
16+
17+
[System.NonSerializedAttribute()]
18+
private const string _strSchema = @"<?xml version=""1.0"" encoding=""utf-16""?>
19+
<xs:schema xmlns=""http://POC.DirectBoundPorts.InMsg"" xmlns:b=""http://schemas.microsoft.com/BizTalk/2003"" targetNamespace=""http://POC.DirectBoundPorts.InMsg"" xmlns:xs=""http://www.w3.org/2001/XMLSchema"">
20+
<xs:element name=""InMsg"">
21+
<xs:complexType>
22+
<xs:sequence>
23+
<xs:element name=""Hello"" type=""xs:string"" />
24+
</xs:sequence>
25+
</xs:complexType>
26+
</xs:element>
27+
</xs:schema>";
28+
29+
public InMsg() {
30+
}
31+
32+
public override string XmlContent {
33+
get {
34+
return _strSchema;
35+
}
36+
}
37+
38+
public override string[] RootNodes {
39+
get {
40+
string[] _RootElements = new string [1];
41+
_RootElements[0] = "InMsg";
42+
return _RootElements;
43+
}
44+
}
45+
46+
protected override object RawSchema {
47+
get {
48+
return _rawSchema;
49+
}
50+
set {
51+
_rawSchema = value;
52+
}
53+
}
54+
}
55+
}

0 commit comments

Comments
 (0)
Please sign in to comment.