Developer Workflow Guide > Workflow Recovery > Workflow Recovery Strategies
  

Workflow Recovery Strategies

When you enable a workflow for recovery, you can configure automatic recovery for any instance of the workflow that was interrupted by a recoverable error.
When you configure automatic recovery, the Data Integration Service applies the recovery strategy that you define when a recoverable event occurs. The Data Integration Service process recovers the workflow instances when the service process restarts.
The following image shows the workflow recovery options in the Developer tool:
The Developer tool displays the workflow objects in the workflow editor and also displays the advanced properties for the workflow. You use the advanced properties to define the recovery options for the workflow instances.
Use the following options when you define a workflow recovery strategy:
  1. 1. Workflow editor in the Developer tool
  2. The editor displays the workflow that you configure.
  3. 2. Advanced tab on the Properties view.
  4. The tab includes the Workflow recovery options.
  5. 3. Enable Recovery option.
  6. To enable recovery, select the option. When you select the option, you can select or clear the option to automatically recover the Workflow instances.
  7. 4. Automatically Recover Workflow option.
  8. To enable the Data Integration Service to automatically recover instances of the Workflow, select the option.

Workflow Recovery and Terminate Events

You cannot recover a workflow that ends in a Terminate event. A workflow enters an aborted state if the active sequence flow reaches a Terminate event.

Workflow Recovery on Grid

The status of a workflow that fails over from one node to another on a grid depends on the type of task that is running when the node fails.
A running workflow tries to continue to run during failover regardless of the workflow recovery strategy that you specify. If the currently running task is a Command task or a Mapping task at the point of failover, the workflow recovery strategy determines the workflow behavior.
If you specify an automatic recovery strategy for the workflow, the workflow reruns the Mapping task or the Command task from the start of the task. If you do not specify an automatic recovery strategy, the workflow is canceled and you must manually recover the workflow on the active node.
You can configure automatic recovery for a workflow that runs on a Data Integration Service grid. If the master service process shuts down unexpectedly, the master role fails over to another service process. The current master can automatically recover any workflow instance that was running during the failover and that you configured for automatic recovery.
Note: Do not configure a workflow for automatic recovery if the workflow includes a Human task. If the workflow is interrupted during a Mapping task that precedes a Human task, the recovered workflow reruns the Mapping task and adds conflicting data to the target database.