Use PrevTaskStatus in link conditions to test the status of the previous task in the workflow that the Integration Service ran.
Use PrevTaskStatus if you disable a task in the workflow. Status and PrevTaskStatus return the same value unless the condition uses a disabled task.
The following figure shows a workflow with link conditions using PrevTaskStatus:
When you run the workflow, the Integration Service skips Session2 because the session is disabled. When the Integration Service evaluates the link condition, $Session2.PrevTaskStatus = SUCCEEDED, it returns the value based on the status of Session1.
If you do not disable Session2, the Integration Service returns the value based on the status of Session2. You do not need to change the link condition when you enable and disable Session2.