[jboss-user] [JBoss jBPM] - Re: Error Saving ProcessInstance using AssignmentHandler
johnhurtchan
do-not-reply at jboss.com
Fri Nov 21 16:09:00 EST 2008
Here's the code that does the signal()...
| JbpmContext jbpmContext = Config.jbpmConfiguration.createJbpmContext();
| try
| {
| ProcessDefinition processDefinition = Config.processDefinition;
| ProcessInstance processInstance = new ProcessInstance(processDefinition);
| ContextInstance contextInstance = (ContextInstance) processInstance.getContextInstance();
| Token token = processInstance.getRootToken();
| token.signal();
| User u = (User) (request.getSession().getAttribute("user"));
| myDataObject.setUser(u);
| contextInstance.setVariable("packetId", packet.getPacketId());
| token.signal("myTransition");
| jbpmContext.save(processInstance);
| }
| finally
| {
| jbpmContext.close();
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4191416#4191416
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4191416
More information about the jboss-user
mailing list