cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti process with failover

lstrzelecki
Champ in-the-making
Champ in-the-making
Hi, I'm evaluating activiti. At start I have requirement of failover. So I ask first.
I have process with chain of serviceTasks (spring beans, which invoke external systems).
I want save state of process while walk through every serviceTask in process. When process will be loaded after restart it will start from last one serviceTask.
Q1: How force process to persist of actual serviceTask?
Q2: How resume to process after restart, which stuck in migrating from one serviceTask to next one?
6 REPLIES 6

jbarrez
Star Contributor
Star Contributor
The functionality you need for this is called 'async continuations', which we havent implemented yet. By putting an async continuation on each of the service tasks, whenever an error occurs, the process will be persisted with as current state the last successful service task.

A current workaround to implement async continuations, is to use a combination of wait states + a queue that signals back to the process.
So each service task is then a 'receive task + service task'. When the receive task is reached, send out a message to a queueu. The process instance is now persisted. Upon arrival of the message in the queue, send a 'signal' back to the process instance using the execution id of the wait state. That matches exactly the behavior you want.

lstrzelecki
Champ in-the-making
Champ in-the-making
Thanks for quick reply.
I will try workaround, nevertheless i have question about:
http://jira.codehaus.org/browse/ACT-126
Is there any plans to implement that, in close future? Any road map? For me it is critical, becouse every invoke of external service (spring bean in servcie task) could be done once.

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
Is there any plans to implement that, in close future? Any road map?

Yes there is.. In the community section… Searching for it is another option to see if it is there

mproch
Champ in-the-making
Champ in-the-making
Well, if you talk about:
http://docs.codehaus.org/display/ACT/Roadmap
I think it hasn't been updated for a while Smiley Wink

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
I think it hasn't been updated for a while

That seems to be true and a valid point, but never the less he could (should) have found it himself.

lstrzelecki
Champ in-the-making
Champ in-the-making
That seems to be true and a valid point, but never the less he could (should) have found it himself.
Thats true, my mistake, sorry.