Hello All,

I have a action handler that does the following:

  |     JbpmSessionFactory factory = JbpmSessionFactory.getInstance();
  |     JbpmSession jbpmSession = factory.openJbpmSession();
  |     jbpmSession.beginTransaction();
  |     try
  |     {
  |       ProcessInstance pi=executionContext.getProcessInstance();
  |       jbpmSession.getGraphSession().saveProcessInstance(pi);
  |       jbpmSession.commitTransaction();
  |     }
  |     catch (Exception e)
  |     {
  |       e.printStackTrace();
  |       jbpmSession.rollbackTransaction();
  |     }
  |     finally
  |     {
  |       jbpmSession.close();
  |     }
  | 
This action handler is associated with each transition programmatically, i.e., 
it is not part of the original process definition. The action handler gets 
executed when a transition is taken and I see an entry in the process instance 
table in db however when I kill the process instance (ctrl-c) and try to rerun 
(processinstance.signal()) it by obtaining it from database using the instance 
id. However, I am getting the following exception:
java.lang.IllegalStateException: couldn't signal token 'Token(/)' : couldn't 
leave node 'null' over its default transition
  |         at org.jbpm.graph.exe.Token.signal(Token.java:90)
  |         at 
org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:201)
  |         at jpl.mipl.pgs.jbpm.JBPMExeEngine.execute(JBPMExeEngine.java:469)
  |         at jpl.mipl.pgs.jbpm.JBPMExeEngine.main(JBPMExeEngine.java:529)
  | 
What am I doing wrong? PLEASE HELP.
Sincerely,
Raj

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916243#3916243

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916243


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to