[jboss-user] [jBPM Users] - Re: [jBPM4] final state when async node is used

kukeltje do-not-reply at jboss.com
Mon Sep 14 12:19:44 EDT 2009


Your original question was: 

anonymous wrote : My question is: how do we know that a workfow is ended ? 

My answer was: 
anonymous wrote : 
  | if you retrieve the processinstance by id and it is null it was either not there to begin with or it is ended. If you are not sure, you can always check in the history. It should be there then.

This is valid AND the truth. (Ab) using the getState is not  the correct way, since if a process is really ended, the assertTrue(processInstance.isEnded());
 would produce a(n?) NPE since it is directly moved to the history table.

So your reply seemed not related to me and I did not respond.

Btw, If you post in the forum and make a Jira issue which is related, you can point that out in the jira issue. There is a specific field for that.

Regarding tests in general, yes, for tests you have to know the workflow. That is what tests are for. So that is not an issue either (imo)

If you could refine the test some more so the last statement does throw an NPE and the getState() still is not equal to 'completed', please get back to us.

Hope this helps to clarify some things.

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

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



More information about the jboss-user mailing list