[jboss-user] [jBPM] - [Q] JBPM 4.4 JbpmException
Ken Hoying
do-not-reply at jboss.com
Tue Jul 27 09:13:16 EDT 2010
Ken Hoying [http://community.jboss.org/people/khoying] created the discussion
"[Q] JBPM 4.4 JbpmException"
To view the discussion, visit: http://community.jboss.org/message/554626#554626
--------------------------------------------------------------
I am trying to use the new JBPM 4.4 API to get the tranistions that are valid for the current process based on the processes current status. However, I must be doing something wrong or must not understand something correctly. Any help from the more knowledgeable would be greatly appreciated.
I have tried the following:
myProcess.findActiveExecutionIn(myState).getActivity();
However, it get the following exception:
Caused by: org.jbpm.api.JbpmException: no environment to get org.jbpm.pvm.internal.session.RepositorySession
at org.jbpm.pvm.internal.env.EnvironmentImpl.getFromCurrent(EnvironmentImpl.java:203)
at org.jbpm.pvm.internal.env.EnvironmentImpl.getFromCurrent(EnvironmentImpl.java:196)
at org.jbpm.pvm.internal.model.ExecutionImpl.getProcessDefinition(ExecutionImpl.java:1182)
at org.jbpm.pvm.internal.model.ExecutionImpl.getActivity(ExecutionImpl.java:1203)
at org.jbpm.pvm.internal.model.ExecutionImpl.getActivity(ExecutionImpl.java:86)
I have also attempted to get the the list of executions and process them. However, the list is always empty.
I am obviously missing something here with my understanding of the API. Can someone enlighten me or point me in the right direction?
Thank you!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/554626#554626]
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/20100727/336b2125/attachment.html
More information about the jboss-user
mailing list