Parallel Process using Flow activity
Hi Everyone,
Iam looking for a solution since a long time. Please help me if u already resolve such problem.
My webservices should run parallelly using WS-BPEL. But those are happening sequentially.
Code follows:
<bpws:flow name="Flow">
<bpws:sequence name="First">
<bpws:invoke inputVariable="convertRequest"name="printMsg" operation="printMsg"
outputVariable="convertResponse"partnerLink="convert" portType="ns0:convertPortType">
</bpws:invoke>
</bpws:sequence>
<bpws:sequence name="Second">
<bpws:assign name="Assign" validate="no">
<bpws:copy>
<bpws:from><![CDATA['Raaaaaaaaaaji']]></bpws:from>
<bpws:to><![CDATA[$convertArgRequest.parameters/ns0:s]]></bpws:to>
</bpws:copy>
</bpws:assign>
<bpws:invoke inputVariable="convertArgRequest"name="printArgMsg" operation="printArgMsg"
outputVariable="convertArgResponse"partnerLink="convert" portType="ns0:convertPortType">
</bpws:invoke>
</bpws:sequence>
</bpws:flow>
Regards,
Raaji
What BPEL Engine you are using?
How did you check if it is executed in parallel? The engine can chose to execute the flow in one thread, as long as it is not blocked by a receive (or invoke) it eventually will execute all tasks in the flow. You dont get a parallel gurantee (from most BPEL engines or der standard)
Gruss
Bernd --
Chief Architect (R&D) SEEBURGER.com
http://bernd.eckenfels.net
BPEL parallel execution
Hi Gruss Bernd -- ,
I am happey to c the reply to my question. ThanQ Verrrry much.
As per our requirement, we have to use open source BPEL engine, so we chose to use JBoss BPEL(jbpm-bpel-1.1.1).
Is there any configuration issues or i have seen in one of the forums like we have to set "nonBlockingInvoke" to true. But it is for Oracle BPEL.
And i checked about the parallel flow by using Thread.sleep in both of my webservice's methods.......also i executed the example Purchase BPEL process(Which mainly used for parallel flow) it is working parallely(I include Thread.sleep in example's methods)
So can u please guide me.........
Regards,
Raaji
check out jboss.org
Hello,
I am not very familiar with jBPM, so I cant help you here. However it sounds like a reasonable restriction of the engine to inline Java calls in a single thread and not do concurrency (unless some Pooling or async invocation is configured). I suggest you research in this area in jBPM specific forums (on jboss.org).
You might also just ignore the behaviour for sleep and check out if another more asyncronous activity works as expected.
Gruss
Bernd
--
Chief Architect (R&D) SEEBURGER.com
http://bernd.eckenfels.net