#if __DESIGNER_DATA #error Do not define __DESIGNER_DATA. #endif // __DESIGNER_DATA [Microsoft.XLANGs.BaseTypes.BPELExportable(false)] module BTSJSON { internal porttype PortType_1 { oneway Operation_1 { PO }; }; internal porttype PortType_2 { oneway Operation_1 { Invoice }; }; [Microsoft.XLANGs.BaseTypes.BPELExportable(false)] internal service ProcessPO { [Microsoft.XLANGs.BaseTypes.LogicalBinding()] port implements PortType_1 ReceiveJSONPO; [Microsoft.XLANGs.BaseTypes.LogicalBinding()] port uses PortType_2 SendJSONInvoice; message PO PurchaseOrder; message Invoice InvoiceMsg; body () { [Microsoft.XLANGs.BaseTypes.DesignerPosition("d478ac91-37ac-418c-b2c8-2f778319667c")] activate receive (ReceiveJSONPO.Operation_1, PurchaseOrder); [Microsoft.XLANGs.BaseTypes.DesignerPosition("959a30c2-92c8-47d1-8df6-7243e961bb23")] construct InvoiceMsg { [Microsoft.XLANGs.BaseTypes.DesignerPosition("ac70f963-dad1-4533-85c1-e8ecd4117659")] transform (InvoiceMsg) = BTSJSON.POToInvoice (PurchaseOrder); } [Microsoft.XLANGs.BaseTypes.DesignerPosition("61187953-153a-45c9-bc90-b537e4765026")] send (SendJSONInvoice.Operation_1, InvoiceMsg); } } }