How Activiti Workflow Retry mechanism work

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
mklovemu
Member II

How Activiti Workflow Retry mechanism work

From Activiti user guide (https://www.activiti.org/userguide/#failRetry), we can configure number of retries and retry interval as below:

<serviceTask id="failingServiceTask" activiti:async="true" activiti:class="org.activiti.engine.test.jobexecutor.RetryFailingDelegate">
<extensionElements>
    <activiti:failedJobRetryTimeCycle>R5/PT7M</activiti:failedJobRetryTimeCycle>
</extensionElements>

However, a job may contain many tasks, so it will get the retry configurations from which tasks? The first task of the job or the failed task?

Moreover do I need to put the retry configuration into every tasks?