JBoss Community

Re: Processinstance not continue after restarting application.

created by tom sebastian in jBPM - View the full discussion

Hi,

     Did u mean the task completed listener as below?

 

     TaskEventKey key = new TaskEventKey(TaskCompletedEvent.class, -1);          

                              TaskCompletedHandler eventResponseHandler = new TaskCompletedHandler(manager, client);

                              client.registerForEvent(key, false, eventResponseHandler);

 

I called this code while starting the application, still it wont continue. But in my code for every startup of application we create a new StatefulKnowledgeSession and new task client. Is this a problem?

Reply to this message by going to Community

Start a new discussion in jBPM at Community