JBoss Community

Re: Continue process Instance

created by Shiju John in jBPM - View the full discussion

For human task serveice you should start  the human task server before you register the handler.

 

Folowing is the code for starting the Mina Task server.

 

 

 

 

 

EntityManagerFactory emfTask = Persistence.createEntityManagerFactory("org.jbpm.task");

TaskService taskService =  new TaskService(emfTask,SystemEventListenerFactory.getSystemEventListener());

 

TaskServiceSession taskSession = taskService.createSession();

MinaTaskServer minaTaskServer = newMinaTaskServer(taskService,9123);

 

Thread thread =  new Thread(minaTaskServer ));

 

thread.start();

 

 

 

 



Reply to this message by going to Community

Start a new discussion in jBPM at Community