ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adiaz.nori...@gmail.com
Subject Event Handler example?
Date Mon, 06 Jul 2009 16:15:27 GMT
Hi all,

Im desperate because I havent found a simple eventhandling example. I have  
tried to do one but without succeed. Im designing my processes with a  
eternal while expecting some messages but the code its a mess. Please share  
your knowledge if you understand and have an example.

Thanks in advance.


This is my current process but it doesnt work:
*****************************************************************************
<bpws:scope name="waitForConfirmaiton">
<bpws:eventHandlers>
<bpws:onEvent messageType="tns:queryRequest" operation="query"  
partnerLink="client" portType="tns:events" variable="queryRequest">
<bpws:correlations>
<bpws:correlation initiate="no" set="CorrProcessID" />
</bpws:correlations>
<bpws:scope name="SA">
<bpws:sequence name="alt">
<bpws:assign name="AssignQuery" validate="no">
<bpws:copy>
<bpws:from>
<bpws:literal>
<tns:queryResponse xmlns:tns="http://eclipse.org/bpel/sample">
<tns:currentValue />
</tns:queryResponse>
</bpws:literal>
</bpws:from>
<bpws:to part="payload" variable="queryResponse" />
</bpws:copy>
<bpws:copy>
<bpws:from variable="var" />
<bpws:to part="payload" variable="queryResponse">
<bpws:query  
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[/tns:currentValue]]></bpws:query>
</bpws:to>
</bpws:copy>
</bpws:assign>
<bpws:reply name="replyQuery" operation="query" partnerLink="client"  
portType="tns:events" variable="queryResponse" />
</bpws:sequence>
</bpws:scope>
</bpws:onEvent>
</bpws:eventHandlers>
<bpws:sequence name="sequenceScopeWait">
<bpws:receive name="Receive" operation="confirm" partnerLink="client"  
portType="tns:events" variable="confirmRequest">
<bpws:correlations>
<bpws:correlation initiate="no" set="CorrProcessID" />
</bpws:correlations>
</bpws:receive>
<bpws:assign name="AssignConfirmation" validate="no">
<bpws:copy>
<bpws:from>
<bpws:literal>CONFIRMED</bpws:literal>
</bpws:from>
<bpws:to variable="var" />
</bpws:copy>
<bpws:copy>
<bpws:from>
<bpws:literal>
<tns:confirmResponse xmlns:tns="http://eclipse.org/bpel/sample">
<tns:currentValue />
</tns:confirmResponse>
</bpws:literal>
</bpws:from>
<bpws:to part="payload" variable="confirmResponse" />
</bpws:copy>
<bpws:copy>
<bpws:from variable="var" />
<bpws:to part="payload" variable="confirmResponse">
<bpws:query  
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[/tns:currentValue]]></bpws:query>
</bpws:to>
</bpws:copy>
</bpws:assign>
<bpws:reply name="Reply" operation="confirm" partnerLink="client"  
portType="tns:events" variable="confirmResponse" />
</bpws:sequence>
</bpws:scope>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message