Workflow Manager
Workflow Manager
Overview:
In the Workflow Manager, we define a set of instructions called a workflow to execute mappings we build in the Designer.
Generally, a workflow contains a session and any other task we may want to perform when you run a session. Tasks can
include a session, email notification, or scheduling information. You connect each task with links in the workflow.
We can also create a worklet in the Workflow Manager. A worklet is an object that groups a set of tasks. A worklet is similar
to a workflow, but without scheduling information. You can run a batch of worklets inside a workflow.
After We create a workflow, We run the workflow in the Workflow Manager and monitor it in the Workflow Monitor.
To create a workflow, we first create tasks such as a session, which contains the mapping you build in the Designer. We can
then connect tasks with conditional links to specify the order of execution for the tasks we created. The Workflow Manager
consists of three tools to help we develop a workflow:
Task Developer. Use the Task Developer to create tasks you want to run in the workflow.
Workflow Designer. Use the Workflow Designer to create a workflow by connecting tasks with links. We can also
create tasks in the Workflow Designer as we develop the workflow.
Worklet Designer. Use the Worklet Designer to create a worklet.
Workflow Tasks
We can create the following types of tasks in the Workflow Manager:
Assignment. Assigns a value to a workflow variable.
Command. Specifies a shell command to run during the workflow.
Control. Stops or aborts the workflow.
Decision. Specifies a condition to evaluate.
Email. Sends email during the workflow.
Event-Raise. Notifies the Event-Wait task that an event has occurred.
Event-Wait. Waits for an event to occur before executing the next task.
Session. Runs a mapping you create in the Designer.
Timer. Waits for a timed event to trigger.
To run any Task, Session, Worklet are Workflow we need a Integration Service.
Tasks Overview
You can create reusable tasks in the Task Developer. Or, create and add tasks in the
Workflow or Worklet Designer as you develop the workflow.
Designer
Worklet Designer
Event-Raise Workflow No Represents the location of a user-defined
Designer event. The Event-Raise task triggers the user-
Worklet Designer defined event when the Integration Service
runs the Event-Raise task.
Event-Wait Workflow No Waits for a user-defined or a predefined event
Designer to occur. Once the event occurs, the
Worklet Designer Integration Service completes the rest of the
workflow.
Session Task Developer Yes Set of instructions to run a mapping.
Workflow
Designer
Worklet Designer
Timer Workflow No Waits for a specified period of time to run the
Designer next task.
Worklet Designer
The Workflow Manager validates tasks attributes and links. If a task is invalid, the workflow
becomes invalid. Workflows containing invalid sessions may still be valid.
Creating a Workflow
Workflows Overview
A workflow is a set of instructions that tells the Integration Service how to run tasks such as sessions, email
notifications, and shell commands. After you create tasks in the Task Developer and Workflow Designer, we
connect the tasks with links to create a workflow.
In the Workflow Designer, we can specify conditional links and use workflow variables to create branches in
the workflow. The Workflow Manager also provides Event-Wait and Event-Raise tasks to control the
sequence of task execution in the workflow. You can also create worklets and nest them inside the workflow.
Every workflow contains a Start task, which represents the beginning of the workflow.
When we create a workflow, select an Integration Service to run the workflow. We can start the workflow
using the Workflow Manager, Workflow Monitor, or pmcmd.
We use the Workflow Monitor to see the progress of a workflow during its run. The Workflow Monitor can
also show the history of a workflow.
Note:
A workflow must contain a Start task. The Start task represents the beginning of a workflow. When
you create a workflow, the Workflow Designer creates a Start task and adds it to the workflow. You cannot
delete the Start task.
After you create a workflow, you can add tasks to the workflow. The Workflow Manager includes
tasks such as the Session, Command, and Email tasks.
Finally, you connect workflow tasks with links to specify the order of execution in the workflow. You
can add conditions to links.
Properties Tab:
Parameter Filename: specify the parameter filename with path.
Write Backward Compatible Workflow Log File: Check this if you do not want to use Log Service but
instead want to write the workflow log to a file
Workflow Log File Name: wf_s_<workflowname>.log
Workflow Log File Directory: $PMWorkflowLogDir\ (You can change it if required)
Save Workflow log by: timestamp or by number of runs (optional)
Save workflow log for these runs: Specify the number of runs of the workflow log to save.
($PMWorkflowLogCount can also be used).
Enable HA recovery: Store workflow state in the persistent storage so that workflow recovery and failover
are possible beyond the current run of the workflow or the service.