Workflow Components
The workflow is defined as XML. The XML must conform to Workflow.xsd schema available in the $MQ_HOME/schema/XW/1.3 directory.
The workflow definition provides the following structure:
- Workflow header—Refer Workflow Header.
Tags global to the entire workflow are defined in this section. This includes filename, input, and output parameters, and a textual description of the workflow.
- Workflow inputs—Refer Workflow Inputs and Outputs.
A workflow can have any number of input and output parameters. The attribute direction indicates whether this it an ‘in’-going or ‘out’-going parameter. Ingoing parameters are the ones that were sent to the workflow by the outside environment, and outgoing parameters are the ones the workflow returns.
- Activities—Activities define what is to be done. Activities can be listed in no particular order. The first activity to execute is identified by the <Start/> tag, which can be specified for only one activity in the workflow. Activities are composed of a set of global tags, and a set of activity specific tags.
For a complete description of all activities and the legal tags, refer Workflow Activities.
- Transitions—Transitions tie activities together.
Transitions should always be defined after all activities are defined. For each activity, there can be more than one transition to other activities. Transitions are evaluated in the order in which they are specified and first transition which evaluates to true is executed.