| 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="ea5a519c-7132-4909-a82e-52fcc2c7f48d" LowerBound="1.1" HigherBound="42.1"> |
| 6 |
<om:Property Name="ReportToAnalyst" Value="True" /> |
| 7 |
<om:Property Name="Name" Value="BTSJSON" /> |
| 8 |
<om:Property Name="Signal" Value="False" /> |
| 9 |
<om:Element Type="PortType" OID="30bf9479-f8dc-4f4e-a1d1-267e27f14bac" 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="PortType_1" /> |
| 14 |
<om:Property Name="Signal" Value="False" /> |
| 15 |
<om:Element Type="OperationDeclaration" OID="9c523d5a-3294-42a6-88f3-4ae49ae83db0" 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="Operation_1" /> |
| 19 |
<om:Property Name="Signal" Value="False" /> |
| 20 |
<om:Element Type="MessageRef" OID="5b477a6e-462a-4c09-a6bd-9e9b26ae5ad1" ParentLink="OperationDeclaration_RequestMessageRef" LowerBound="8.13" HigherBound="8.15"> |
| 21 |
<om:Property Name="Ref" Value="BTSJSON.PO" /> |
| 22 |
<om:Property Name="ReportToAnalyst" Value="True" /> |
| 23 |
<om:Property Name="Name" Value="Request" /> |
| 24 |
<om:Property Name="Signal" Value="False" /> |
| 25 |
</om:Element> |
| 26 |
</om:Element> |
| 27 |
</om:Element> |
| 28 |
<om:Element Type="ServiceDeclaration" OID="e74dc54e-2016-4417-a28b-4c3e45dff411" ParentLink="Module_ServiceDeclaration" LowerBound="18.1" HigherBound="41.1"> |
| 29 |
<om:Property Name="InitializedTransactionType" Value="False" /> |
| 30 |
<om:Property Name="IsInvokable" Value="False" /> |
| 31 |
<om:Property Name="TypeModifier" Value="Internal" /> |
| 32 |
<om:Property Name="ReportToAnalyst" Value="True" /> |
| 33 |
<om:Property Name="Name" Value="ProcessPO" /> |
| 34 |
<om:Property Name="Signal" Value="False" /> |
| 35 |
<om:Element Type="MessageDeclaration" OID="f706cdf4-1710-4dc4-a4b6-6004486cda37" ParentLink="ServiceDeclaration_MessageDeclaration" LowerBound="25.1" HigherBound="26.1"> |
| 36 |
<om:Property Name="Type" Value="BTSJSON.PO" /> |
| 37 |
<om:Property Name="ParamDirection" Value="In" /> |
| 38 |
<om:Property Name="ReportToAnalyst" Value="True" /> |
| 39 |
<om:Property Name="Name" Value="PurchaseOrder" /> |
| 40 |
<om:Property Name="Signal" Value="True" /> |
| 41 |
</om:Element> |
| 42 |
<om:Element Type="MessageDeclaration" OID="b4715502-31b6-45fe-b7fc-820880b05a6b" ParentLink="ServiceDeclaration_MessageDeclaration" LowerBound="26.1" HigherBound="27.1"> |
| 43 |
<om:Property Name="Type" Value="BTSJSON.Invoice" /> |
| 44 |
<om:Property Name="ParamDirection" Value="In" /> |
| 45 |
<om:Property Name="ReportToAnalyst" Value="True" /> |
| 46 |
<om:Property Name="Name" Value="InvoiceMsg" /> |
| 47 |
<om:Property Name="Signal" Value="True" /> |
| 48 |
</om:Element> |
| 49 |
</om:Element> |
| 50 |
</om:Element> |
| 51 |
</om:MetaModel> |
| 52 |
#endif // __DESIGNER_DATA |
| 53 |
[Microsoft.XLANGs.BaseTypes.BPELExportable(false)] |
| 54 |
module BTSJSON |
| 55 |
{ |
| 56 |
internal porttype PortType_1 |
| 57 |
{ |
| 58 |
oneway Operation_1 |
| 59 |
{ |
| 60 |
PO |
| 61 |
}; |
| 62 |
}; |
| 63 |
internal porttype PortType_2 |
| 64 |
{ |
| 65 |
oneway Operation_1 |
| 66 |
{ |
| 67 |
Invoice |
| 68 |
}; |
| 69 |
}; |
| 70 |
[Microsoft.XLANGs.BaseTypes.BPELExportable(false)] |
| 71 |
internal service ProcessPO |
| 72 |
{ |
| 73 |
[Microsoft.XLANGs.BaseTypes.LogicalBinding()] |
| 74 |
port implements PortType_1 ReceiveJSONPO; |
| 75 |
[Microsoft.XLANGs.BaseTypes.LogicalBinding()] |
| 76 |
port uses PortType_2 SendJSONInvoice; |
| 77 |
message PO PurchaseOrder; |
| 78 |
message Invoice InvoiceMsg; |
| 79 |
body () |
| 80 |
{ |
| 81 |
[Microsoft.XLANGs.BaseTypes.DesignerPosition("d478ac91-37ac-418c-b2c8-2f778319667c")] |
| 82 |
activate receive (ReceiveJSONPO.Operation_1, PurchaseOrder); |
| 83 |
[Microsoft.XLANGs.BaseTypes.DesignerPosition("959a30c2-92c8-47d1-8df6-7243e961bb23")] |
| 84 |
construct InvoiceMsg |
| 85 |
{ |
| 86 |
[Microsoft.XLANGs.BaseTypes.DesignerPosition("ac70f963-dad1-4533-85c1-e8ecd4117659")] |
| 87 |
transform (InvoiceMsg) = BTSJSON.POToInvoice (PurchaseOrder); |
| 88 |
} |
| 89 |
[Microsoft.XLANGs.BaseTypes.DesignerPosition("61187953-153a-45c9-bc90-b537e4765026")] |
| 90 |
send (SendJSONInvoice.Operation_1, InvoiceMsg); |
| 91 |
} |
| 92 |
} |
| 93 |
} |
| 94 |
|