Workflow Validation
When you develop a workflow, you must configure it so that the Data Integration Service can read and process the entire workflow. The Developer tool marks a workflow as not valid when it detects errors that will prevent the Data Integration Service from running the workflow.
When you validate a workflow, the Developer tool validates sequence flows, expressions, and workflow objects.
Workflow Object Validation
The Developer tool performs workflow object validation each time you validate a workflow.
The Developer tool validates the following workflow objects:
- Events
- The workflow contains one Start event that is the first object in the workflow. The workflow contains one End event that is the last object in the workflow. The workflow has a path from the Start event to the End event.
- Tasks
Each task has a unique name within the workflow. If applicable, task input is assigned to workflow parameters and variables with compatible types. If applicable, task output is assigned to workflow variables with compatible datatypes. Task configuration properties are assigned to valid values.
Each Assignment task assigns a valid value to a single workflow variable. The value assigned to the workflow variable has a compatible datatype. If the task uses workflow parameters or variables in the assignment expression, the Developer tool verifies that the parameters and variables exist.
Each Command task includes a command that does not contain a carriage return character or line feed character. If the command uses workflow parameters or variables, the Developer tool verifies that the parameters and variables exist.
Each Mapping task includes a valid mapping that exists in the repository.
Each Notification task includes at least one recipient. If the task uses workflow parameters or variables, the Developer tool verifies that the parameters and variables exist.
- Gateways
- Each gateway has a unique name within the workflow.
Sequence Flow Validation
The Developer tool performs sequence flow validation each time you validate a workflow.
The Developer tool makes the following sequence flow validations:
- •The workflow must not include looped sequence flows. Each sequence flow can run one time.
- •The Start event has a single outgoing sequence flow.
- •The sequence flow that leads from the Start event does not include a condition.
- •The End event has a single incoming sequence flow.
- •Each task has a single incoming sequence flow and a single outgoing sequence flow.
- •Each gateway has either multiple incoming sequence flows or multiple outgoing sequence flows, but not both. A gateway that splits the workflow has at least two outgoing sequence flows, with one of the sequence flows set as the default. A gateway that merges the workflow does not have a default outgoing sequence flow.
- •An expression in a conditional sequence flow must return a boolean or integer value. The expression cannot contain a carriage return character or a line feed character.
Expression Validation
You can validate an expression in a conditional sequence flow or in an Assignment task while you are creating the expression. If you did not correct the errors, error messages appear in the Validation Log view when you validate the workflow.
Validating a Workflow
Validate a workflow to ensure that the Data Integration Service can read and process the entire workflow.
1. Open the workflow in the editor.
2. Click Edit > Validate.
Errors appear in the Validation Log view.
3. If an error appears, fix the error and validate the workflow again.