Creating a Simple Workflow
From OpsWise Documentation Wiki
Your trail:Creating TasksCreating Users and Assigning PermissionsCreating Virtual ResourcesCreating WorkflowsCreating a Simple Workflow
Open as PDF
In this exercise, we will learn how to copy tasks, create a simple workflow of Sleep tasks, and use the tools available in the workflow editor.
Contents |
Copying Tasks
Before you begin, create six Sleep tasks for use in the workflow. Assign the names Sleep1, Sleep2, and so on, and give each task a sleep time of 10 (seconds). Hint: You can make a copy of a task with a new name as follows:
- Create the first task and use the down-arrow to save it.
- Type a new name (for example, Sleep2), click the down-arrow and select Insert and Stay.
- Repeat step 2 for the remaining Sleep tasks.
Creating a Simple Workflow
Now that we have six Sleep tasks to work with, we are ready to create a simple workflow:
- From the navigation pane, select Tasks > Workflow Tasks and click New.
- In the Task Name field, type Simple Workflow.
- Use the down-arrow to save the record without exiting the screen. Once the record is saved, note the additional buttons that have appeared: Update, Edit Workflow, Launch Task, and Delete.
- Click Edit Workflow to access the workflow editor.
- The workflow editor operates in several modes, depending on which icon was most recently clicked on the toolbar. See Workflow Modes for a complete description. Also, see the icon reference for a description of each icon on the toolbar. To add a new task, click the Add Task
icon.
- When the Task Find window pops up, click the Search button to display all tasks. You can also narrow down the search by typing names or partial names in the Task name field or selecting specific task types, or both.
- Click and drag the icon onto the canvas for the Sleep1 task. Repeat the process for the remaining Sleep tasks. When you are finished, close the Task Find window.
- Now we will arrange our workflow as follows:
- Sleep1 is the top-level task
- Sleep 2, 3 and 4 are dependent on Sleep1.
- Sleep 5 and 6 are dependent on Sleep 3.
- Now we are ready to create connections.
- Click the curved connector icon
. This puts you in connect mode.
- Click Sleep1, drag the cursor down to Sleep2, then release the mouse. A curved connection appears.
- Repeat for Sleep3 and Sleep4.
- For the next set of connections, we will use the straight
connector, which creates a diagonal line instead of a curved line. Click the straight
connector, then click Sleep3 and connect it to Sleep5 and Sleep6. Your canvas should now look like this:
- Click the curved connector icon
- The default conditions (or dependency) for connectors is Success. That is, the downstream task runs if the upstream task goes to success. To view the conditions, right-click on a connector and click Conditions. The Conditions window displays.
- Cancel out of the Conditions window and click Save
to save the workflow.

Note that a Sleep task cannot go to Failure so those options are greyed out.
Using the Workflow Editor Tools
- Delete Sleep4 by clicking on it and clicking Delete
. Note that the connector is also deleted.
- Increase the size of the workflow items by clicking Zoom In
.
- Decrease the size by clicking Zoom Out
.
- To change the workflow display to twice its size, click Zoom
and specify 200.
- To return it to its original size, click Actual Size
.
- To reformat your entire workflow into a horizonal display, click Horizontal Layout
.
- To reformat the workflow into a vertical display, click Vertical Layout
.
- Two tools are available for viewing very large workflows:
See Icon Reference for a complete description of all workflow editor tools.
Running the Workflow
Now we will manually launch the workflow and view it from the Activity screen.
- Click the back arrow to return to the Workflow record.
- Click Launch Task.
- From the navigation pane, select Task Instances > Activity. You will see six task instances: the Simple Workflow task, and the five Sleep tasks (assuming you deleted one of the Sleep tasks during the previous exercise).
For additional information, see:




