cancel
Showing results for 
Search instead for 
Did you mean: 

Extending service task and add async

esseti
Champ in-the-making
Champ in-the-making
Hi all.
i've to implement my task using the delegation (http://www.activiti.org/userguide/#eclipseDesignerExtending). 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 
activiti:async
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.

thanks.
1 REPLY 1

trademak
Star Contributor
Star Contributor
Good point, custom service tasks should also support async configuration. Or setting a default async value. Could you add a JIRA?

Best regards,