Lesson 5: Adding tasks to the deployment plan
Add tasks to the segments in the deployment plan.
The Pre-Deployment Tasks segment starts as soon as the deployment starts. Because the execution pattern is Sequential with Sequential Enforced, the Verify target hosts are ready task cannot start until the Notify Data Center about the Maintenance Window task is finished.
Because the segment's execution pattern is Sequential, task durations are added to calculate the segment's overall duration. The Pre-Deployment Tasks segment's duration is estimated to be 10 minutes.
The tasks for the Pre-Deployment Tasks segment are shown in the following figure:

Adding tasks to the Deployment Tasks segment
Add a manual task, signal task, and a task prerequisite to the deployment plan.
By making the Deploy DB Changes task a prerequisite for the Signal DB Changes Done task, the latter cannot start until the former is complete. And because signal tasks run as soon as they are eligible, it runs as soon as the manual task Deploy DB Changes is complete.
The duration for the Deployment Tasks segment is 6 minutes. By default, signal and wait tasks have a duration of 1 minute. The tasks for the Deployment Tasks segment are shown in this figure:

Adding tasks to the Deployment Tasks II segment
Add a manual task, wait task, and a task prerequisite to the deployment plan.
-
Complete these steps to add a wait task to the Deployment Tasks II segment:
-
Complete these steps to add a manual task to the Deployment Tasks II segment:
The manual task cannot start until the Wait for DB Changes Done task is complete, that is, until it receives a signal from the Signal DB Changes Done task.
Lesson checkpoint
In this lesson, you added tasks to the deployment plan and defined the workflow by using segment and task dependencies.
By creating dependencies, you defined the workflow for any deployment done with this deployment plan. The tasks in the plan's segments are done in the order in which the segments are listed. By using the techniques that are learned in this lesson, you can control a deployment's workflow even for deployments with many segments and tasks.

For more information about creating tasks, see Creating manual tasks.

