[jboss-user] [jBPM] - Re: JBPM Task

Mauricio Salatino do-not-reply at jboss.com
Thu Jul 19 06:47:52 EDT 2012

Mauricio Salatino [https://community.jboss.org/people/salaboy21] created the discussion

"Re: JBPM Task"

To view the discussion, visit: https://community.jboss.org/message/748996#748996

You are almost there. 
As far as I remember you should do something like:

Task task = new Task();
and then
task.setTaskData(new TaskData());

That will you an empty task, in order to make it work and to be able to start and complete the task you will need to create the PeopleAssignment and that information as well. 
Check the tests:  https://github.com/droolsjbpm/jbpm/blob/master/jbpm-human-task/jbpm-human-task-core/src/test/java/org/jbpm/task/service/base/async/TaskServiceLifeCycleBaseAsyncTest.java https://github.com/droolsjbpm/jbpm/blob/master/jbpm-human-task/jbpm-human-task-core/src/test/java/org/jbpm/task/service/base/async/TaskServiceLifeCycleBaseAsyncTest.java
Notice that we are using MVEL to define the task, but you can clearly see the informaiton required by the task structure to work.

Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120719/96006d7f/attachment.html 

More information about the jboss-user mailing list