[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [bpel-dev] onEvent in a Scope, does it work?

Thanks for sharing Neto :)



Hi All,

the problem was not the BPEL Designer neither the Ode. It was me. =P

According to BPEL specification: "A business process instance MUST NOT simultaneously enable two or more <receive> activities for the same partnerLink, portType, operation and correlationSet(s)".

I found an interesting discussion about a similar problem at: 
http://stackoverflow.com/questions/5727218/bpel-process-stopped-on-a-second-receive

And a good example of how deal with multiples messages in the same process:
http://diazdeveloper.blogspot.com/2009/09/correlation-with-bpel.html

Cheers,
Neto

On Tue, Oct 4, 2011 at 2:16 PM, Neto <waldemar.neto@xxxxxxxxx> wrote:
Hi All,

I have to develop a process that can receive some message (onEvent) while the scope is active. I was developing some simple processes and they weren't working. I don't know if my question is related with BPEL Designer or with the Ode server.

An process example is attached, it is quite simple. I just put a wait activity into a Scope activity, and this Scope activity has an onEvent (fireEvent). When I invoke the fireEvent while the Scope is active, the error message at the bottom of this email appears.

My problem is similar to this one:

This project uses the Ode server and the BPEL Designer (I guess). My question is: does the onEvent in Scope work? If yes, can someone send me an example (if possible)? If not, is it a problem of the BPEL Designer or of the Ode?

By the way, the onMessage in a Pick activity is working fine. I tested it and it wokrs.

Thanks in advance,
Neto

The error message:

13:25:26,330 ERROR [ODEService] Timeout or execution error when waiting for response to MEX {MyRoleMex#hqejbhcnphr6nan25q1vho [Client hqejbhcnphr6nan25q1vhn] calling {http://precise.ac.be}ProcessTest.fireEvent(...)} java.util.concurrent.TimeoutException: Message exchange org.apache.ode.bpel.engine.MyRoleMessageExchangeImpl$ResponseFuture@78df42ce timed out(120000 ms) when waiting for a response!

java.util.concurrent.TimeoutException: Message exchange org.apache.ode.bpel.engine.MyRoleMessageExchangeImpl$ResponseFuture@78df42ce timed out(120000 ms) when waiting for a response!

at org.apache.ode.bpel.engine.MyRoleMessageExchangeImpl$ResponseFuture.get(MyRoleMessageExchangeImpl.java:245)
at org.apache.ode.axis2.ODEService.onAxisMessageExchange(ODEService.java:161)
at org.apache.ode.axis2.hooks.ODEMessageReceiver.invokeBusinessLogic(ODEMessageReceiver.java:69)
at org.apache.ode.axis2.hooks.ODEMessageReceiver.invokeBusinessLogic(ODEMessageReceiver.java:52)
...


_______________________________________________
bpel-dev mailing list
bpel-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/bpel-dev