[jboss-user] [jBPM] New message: "Re: [jBPM4.1] - No Environment Exception"

Mike Burton do-not-reply at jboss.com
Tue Feb 23 16:11:23 EST 2010


User development,

A new message was posted in the thread "[jBPM4.1] - No Environment Exception":

http://community.jboss.org/message/528035#528035

Author  : Mike Burton
Profile : http://community.jboss.org/people/mike_burton

Message:
--------------------------------------------------------------
Hi Ronald,
 
Thanks for your reply and also sorry for the confusion.
 
This is what i am trying to to.
Using Query API and process instance id i am getting ProcessInstance in my code.
After getting the ProcessInstance, using ExecutionImpl i am trying to get the Outgoing Transitions for a state in a workflow.
 
ProcessInstance processInstance =  getExecutionService().createProcessInstanceQuery().processInstanceId(pProcessInstanceID).uniqueResult();
ExecutionImpl activeExecution = ((ExecutionImpl)processInstance).findActiveExecutionIn(StateName);
List<Transition> outgoingTransitionList = activeExecution.getActivity().getOutgoingTransitions();
 
With this code i am getting 'No Environment Exception'. Did i miss something over here?

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

To reply to this message visit the message page: http://community.jboss.org/message/528035#528035




More information about the jboss-user mailing list