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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...