[jboss-user] [JBoss jBPM] - findReceiveTokens query finds InvokeAction too

meghanai_99 do-not-reply at jboss.com
Wed Feb 4 19:42:00 EST 2009

One of our BPEL flows sometimes gets into a state where corresponding Token is not marked as ended. The END_ column is null. We do not understand why this happens yet. However as a consequence of this, when JBoss restarts this BPEL flow war file fails to deploy and throws ClassCastException in

  | Receive receive = (Receive) token.getNode();

in IntegrationControl.java

When we investigated the problem, we noticed that the 'findReceiveTokens' query finds all actions and not just receive action. However from above code it seems JBPM only wanted to select ReceiveActions there. Then we changed the query to select only ReceiveAction by using discriminator value 'R' and deployment started working. 

This seems like a bug, should we file a JIRA issue?

Also it will be great if someone can suggest under what circumstances Token is not marked as 'ended'. Why is it referring to InvokeAction at that point? 

Thank you,

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4207178#4207178

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4207178

More information about the jboss-user mailing list