-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds WCP12 partial support test based on while and async invoke
- Loading branch information
1 parent
2c452e3
commit ad06153
Showing
2 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
...erns/control-flow/WCP12-MultipleInstancesWithoutSynchronizationPattern-While-Partial.bpel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<process | ||
name="WCP12-MultipleInstancesWithoutSynchronizationPattern-While-Partial" | ||
targetNamespace="http://dsg.wiai.uniba.de/betsy/patterns/bpel/control-flow/wcp12/multipleInstancesWithoutSynchronization/while/partial" | ||
xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable" | ||
xmlns:ti="http://dsg.wiai.uniba.de/betsy/activities/wsdl/testinterface" | ||
xmlns:tp="http://dsg.wiai.uniba.de/betsy/activities/wsdl/testpartner" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
<import namespace="http://dsg.wiai.uniba.de/betsy/activities/wsdl/testinterface" location="../TestInterface.wsdl" | ||
importType="http://schemas.xmlsoap.org/wsdl/"/> | ||
<import namespace="http://dsg.wiai.uniba.de/betsy/activities/wsdl/testpartner" location="../TestPartner.wsdl" | ||
importType="http://schemas.xmlsoap.org/wsdl/"/> | ||
<partnerLinks> | ||
<partnerLink name="MyRoleLink" partnerLinkType="ti:TestInterfacePartnerLinkType" myRole="testInterfaceRole"/> | ||
<partnerLink name="TestPartnerLink" partnerLinkType="tp:TestPartnerLinkType" partnerRole="testPartnerRole"/> | ||
</partnerLinks> | ||
<variables> | ||
<variable name="ReplyData" messageType="ti:executeProcessSyncResponse"/> | ||
<variable name="InitData" messageType="ti:executeProcessSyncRequest"/> | ||
<variable name="PartnerInitData" messageType="tp:executeProcessAsyncRequest"/> | ||
<variable name="counter" type="xs:int"/> | ||
</variables> | ||
<sequence> | ||
|
||
<receive name="InitialReceive" createInstance="yes" partnerLink="MyRoleLink" operation="startProcessSync" | ||
portType="ti:TestInterfacePortType" variable="InitData"/> | ||
<assign name="AssignInitData"> | ||
<copy> | ||
<from><literal>100</literal></from> | ||
<to variable="PartnerInitData" part="inputPart"/> | ||
</copy> | ||
<copy> | ||
<from>0</from> | ||
<to variable="ReplyData" part="outputPart"/> | ||
</copy> | ||
<copy> | ||
<from>$InitData.inputPart</from> | ||
<to variable="counter"/> | ||
</copy> | ||
</assign> | ||
<while> | ||
<condition>$counter > 0</condition> | ||
<sequence> | ||
<invoke name="InvokePartner" partnerLink="TestPartnerLink" operation="startProcessAsync" | ||
portType="tp:TestPartnerPortType" inputVariable="PartnerInitData" /> | ||
<assign name="decrement"> | ||
<copy> | ||
<from>$counter - 1</from> | ||
<to variable="counter"/> | ||
</copy> | ||
</assign> | ||
</sequence> | ||
</while> | ||
|
||
<assign name="AddReplyData"> | ||
<copy> | ||
<from>$InitData.inputPart</from> | ||
<to variable="ReplyData" part="outputPart"/> | ||
</copy> | ||
</assign> | ||
<reply name="ReplyToInitialReceive" partnerLink="MyRoleLink" operation="startProcessSync" | ||
portType="ti:TestInterfacePortType" variable="ReplyData"/> | ||
</sequence> | ||
</process> |