[jboss-user] [jBPM] - exception on fork getting all outgoing transitions

Maciej Swiderski do-not-reply at jboss.com
Thu Apr 1 13:10:38 EDT 2010


Maciej Swiderski [http://community.jboss.org/people/swiderski.maciej] replied to the discussion

"exception on fork getting all outgoing transitions"

To view the discussion, visit: http://community.jboss.org/message/535242#535242

--------------------------------------------------------------
Hi,

I ran into similar problem and unfortunately I don't have explanation why it happens like that.

I pretty sure what is the reason of the problem - process definition is not loaded for the process instance (Execution) that you are examining. I would suggest a workaround to get it working. Check if process definition is present on your execution and if note use ProcessDefinitionQuery

repositoryService.createProcessDefinitionQyery().processDefinitionId(processInstance.getProcessDefinitionId()).uniqueResult()

and set returned object on your execution.

That should solve the problem.

You can as well do it manually by checking process definition your self to find correct node by its name (currently executing one).

HTH
Maciej

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/535242#535242]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100401/9e3cfa4f/attachment.html 


More information about the jboss-user mailing list