BPEL check

Hello,

I am a beginner on BPEL and have created a small process. I have a problem with my code but I can't see where it is. 

Could someone please help me out with the code below? I will be very grateful.

 

BPEL file code

 

<process name="OrderProcess"
targetNamespace="http://order.org/orderprocessing"
suppressJoinFailure="yes"
xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:sns="http://buyer.org/wsdl/Order"
xmlns:stns="http://test.org/services/StockReg">

<variables>
<variable name="availReq" messageType="stns:availableRequest" />
<variable name="availRes" messageType="stns:availableResponse" />
<variable name="acceptReq" messageType="sns:acceptOrder" />
<variable name="acceptRes" messageType="sns:accepted" />
<variable name="invReq" messageType="sns:invoiceRequest" />
<variable name="invRes" messageType="sns:invoiceResponse" />
<variable name="bpelReq" messageType="sns:productRequest" />
<variable name="bpelRes" messageType="sns:displayOrder" />
</variables>

<partners>
<partner name="ORS" serviceLinkType="sns:OrderingLT" myRole="OrderService" />
<partner name="STMS" serviceLinkType="sns:StockManagerLT" partnerRole="StockManager" />
</partners>

<flow>
<links>
<link name="req-to-confirm"/>
<link name="req-to-check"/>
</links>


<sequence>
<recieve name="productID" partner="ORS" portType="sns:OrderProperties" operation="makeProductRequest"  variable="bpelReq" createInstance="yes">
</recieve>
<invoke name="invokeAvail" partner="STMS" portType="stns:StockReg" operation="isavailable"
inputVariable="availReq" outputVariable="availRes"/>
<source linkName = "req-to-check" transitionCondition="(bpws:getVariableData('availRes' , 'authenticateResponse') = false())"/>
<source linkName = "check-to-confirm" transitionCondition="(bpws:getVariableData('availRes' , 'authenticateResponse') = true())"/>   
</sequence>


<sequence>
<target linkName="req-to-check"/>

<assign name="assign1">
<copy>
<from variable="bpelReq" part="productID"/>
<to variable="bpelRes" part="productID"/>
</copy>
</assign>

<reply name="reply" partner="ORS" portType="sns:OrderProperties" operation="makeProductRequest"
variable="bpelRes">
</reply>

</sequence>

<sequence>
<target linkName="check-to-confirm"/>
<pick>
<onMessage partner="ORS" portType="sns:OrderProperties" operation="accept"
variable="acceptReq">     


<assign name="assign2">
<copy>
<from variable="acceptReq" part="productID"/>
<to variable="invReq" part="productID"/>
</copy>
</assign>

<invoke name="completeOrder" partner="ORS" portType="sns:OrderProperties"
operation="confirm" inputVariable="invReq"/>


<assign name="assign3">
<copy>
<from variable="invReq" part="productID"/>
<to variable="invRes" part="productID"/>
</copy>
</assign>

<reply name="reply" partner="ORS" portType="sns:OrderProperties" operation="makeProductRequest"
variable="invRes"/>

</onMessage>
<onAlarm for="'PT90S'">
<empty/>
</onAlarm>
</pick>

</sequence>
</flow>
</process>

 

Thank You

 

J.A

XML.org Focus Areas: BPEL | DITA | ebXML | IDtrust | OpenDocument | SAML | UBL | UDDI
OASIS sites: OASIS | Cover Pages | XML.org | AMQP | CGM Open | eGov | Emergency | IDtrust | LegalXML | Open CSA | OSLC | WS-I