JBoss Community

Re: Combining human and automated tasks

created by Demian Calcaprina in jBPM - View the full discussion

In fact, the resume is made automatically when you complete the task.

 

For example,

 

CommandBasedWSHumanTaskHandler handler = new CommandBasedWSHumanTaskHandler(ksession)

...

handler.connect()

..

session.registerWorkItemHandler("Human Task", handler);

 

This will make that:

1) The human task listeners for task completion are registered.

2) When task is registered, the listener has the session to continue the process.

 

Now, you can make

client.complete(taskId,...)

 

Now the listener (you can check it, GetResultContentResponseHandler) will be notified about task completion and process continued.

 

Hope this helps,

 

Demian

Reply to this message by going to Community

Start a new discussion in jBPM at Community