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 -------------------------------------------------------------- Hi, 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. Cheers -------------------------------------------------------------- Reply to this message by going to Community [https://community.jboss.org/message/748996#748996] Start a new discussion in jBPM at Community [https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
