[jboss-user] [JBoss jBPM] - Re: monitoring piece of default webapp not displaying the co

unome do-not-reply at jboss.com
Tue Aug 1 23:00:59 EDT 2006


Ronald,
This is what I attempted:

I changed the "State" node "StateA" to a "node" node.
i.e:  So one child token goes to a "node" while the other still goes to a "task-node". And then I added the action to the node instead of the event "node-enter". But I still see the same results.

i.e.  If I manually (via the webapp) "Save and close task" first, the application waits until the MDB signals the child token (node). The debug messages show that the process resumes, goes into join, and past it to the next node, etc. But the image (monitoring peice) still highlights the child node.

Also, if the MDB signals the child token first and then I signal the task-node (via the webapp), the process does not go past the join. Debug messages say that there join is waiting on a concurrent token. 

Strange behavior! 

I even tried, saving the child token in the ActionHandler (ExternalServiceActionHandler)  using jbpmContext.getCurrentJbpmContext().

Question: In the MDB, should I be saving the token after calling signal? I tried doing that. If I just did a jbpmContext.save(token) I don't get any errors. But according to the documentation if I add a jbpmContext.close(), the application throws up saying "cannot commit during a managed transaction". 

I tried "async=true" as an attribute of the node. But didn't help. I'm not very clear on the async piece. So I'll have to investigate that further.

Anyway, I'm going to have to think of a different approach soon. 
All I want to do is have a MDB (or some external program) signal whatever token (root token or token) is passed to it. I'm initiating the process through the default webapp. When I come to a "wait" state, I want an MDB (or external program) signal the token so when I monitor the process instance via the default webapp monitoring piece I can see the state change.

Ronald>> Thanks for taking a look at this and for your time.


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

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



More information about the jboss-user mailing list