You are almost there.
As far as I remember you should do something like:
Task task = new Task();
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.
Notice that we are using MVEL to define the task, but you can clearly see the informaiton required by the task structure to work.
Thanx for the reply i went throught the example from the link that you provided but i'm still getting this error:
java.lang.RuntimeException: Timeout : unable to retrieve Task Id
I don't know wers the problem now or i have to set the taskId?
Do you found any solution for this?
I got the same error when I try to get task Id
I refer to this post https://community.jboss.org/message/739301#739301 to generate a new value for the first parameter of HornetQTaskClientConnector
but still, I got the same error
Turns out to be I am using different version of TaskClient and TaskServer,
Changed all version to 5.3.0.Final and the problem solved.