This content has been marked as final.
Show 4 replies
-
1. Re: Error Saving ProcessInstance using AssignmentHandler
salaboy21 Nov 21, 2008 3:13 PM (in response to johnhurtchan)Can you show us your code where you make token.signal()?
-
2. Re: Error Saving ProcessInstance using AssignmentHandler
johnhurtchan Nov 21, 2008 4:08 PM (in response to johnhurtchan)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(); }
-
3. Re: Error Saving ProcessInstance using AssignmentHandler
johnhurtchan Nov 21, 2008 5:12 PM (in response to johnhurtchan)Sorry, the problem is that my custom code throws an exception thats not caught by the AssignmentHandler.
But JBPM or Hibernate is hiding my exception so I didn't know what was going on. Can JBPM be enhanced to propagate the exception message up the chain so I know what happened? Thanks. -
4. Re: Error Saving ProcessInstance using AssignmentHandler
kukeltje Nov 22, 2008 6:06 PM (in response to johnhurtchan)PLEASE.... make a full unit test to demonstrate the problem... Embedded processdefinition, actionhandlers (via inner classes) etc....
Mauricio, I'd appreciate it if you request that as well instead of trying to rely on code-snippets.