AnsweredAssumed Answered

Extending service task and add  async

Question asked by esseti on Jun 8, 2013
Latest reply on Jun 10, 2013 by trademak
Hi all.
i've to implement my task using the delegation ( so far so good.
Now, inside the task logic, i've to perform a poll of data that periodically queries an external server and, when the poll returns true it finishes the task.

i saw in the documentation that activiti has 
that does pretty much what i want to do.
Then, can i reuse this for my purposes or do I have to manage the threads by myself inside the delegation function?  (writing the logic of polling using a thread)

PS: how long can i keep polling the external server inside the task execution? beacuse i might have results in days or weeks, so i've to keep polling periodically till i've data.