-
1. Re: JBPM Task
salaboy21 Jul 19, 2012 6:47 AM (in response to mab1990.amu)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.
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
-
2. Re: JBPM Task
mab1990.amu Jul 19, 2012 9:26 AM (in response to salaboy21)Hello,
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
at org.jbpm.process.workitem.wsht.BlockingAddTaskResponseHandler.getTaskId(BlockingAddTaskResponseHandler.java:41)
at principal.PricipalProcessTest.main(PricipalProcessTest.java:71)
I don't know wers the problem now or i have to set the taskId?
-
3. Re: JBPM Task
thomas.setiabudi Nov 21, 2012 7:03 AM (in response to mab1990.amu)Hi,
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
Regards,
Thomas Setiabudi
-
4. Re: JBPM Task
thomas.setiabudi Nov 22, 2012 4:54 AM (in response to thomas.setiabudi)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.