First of all, thank you for the great support in this forum ;)
my next question is: how is it possible to obtain the current active task id from an execution object in jbpm 4?
Because i want to use a timeout event inside the process, and therefore i have to implement the eventlistener interface. The execution object is passed by notify method but i need the current task id. Is it possible to access the task id from the execution object, maybe by creating a taskquery (taskservice), but which parameters i have to use?
Thanks for your answers,
It totally depends on what you stored in your domainmodel...
If you stored the main execution, you can retrieve the process id and use that to retrieve all open tasks. Or if you stored e.g. a child execution, you have narrowed it down already. You can even store the taskid itself... so...
And yes, the taskservice what you should use