Workflows must be valid in order to be deployed. This page covers how to identify invalid workflows and view the validation errors associated with them, as well as how to resolve validation errors.
This section covers how to identify invalid workflows and view the validation errors associated with invalid workflows.
For new projects, invalid items are highlighted by default on the design canvas, with the default selection of Highlight Invalid Items. To turn off this option, clear this selection:
This view can also be toggled on using the Invalid filter in the Components tab of the project pane to filter on invalid items.
When this display option is selected, the names of invalid workflows appear in italics and the color red in the Workflows tab of the project pane:
In addition, if the workflow is invalid due to an implicit error with the workflow, an error icon is displayed to the left of the workflow name. When clicked, a message displays the validation errors for the workflow. For information on possible errors, see Validation Rules, next.
The error icon does not display if the reason the workflow is invalid is because it contains other components with implicit errors. For example, a workflow may be invalid because it contains operations that are invalid.
Certain validation rules must be followed for workflows to be deployed to the Harmony cloud and for operations within them to be executed on Harmony agents. These rules ensure that all parts of a project are supported and expected by the agent. The rules for workflows are detailed as follows.
Workflows Must Be Valid
In order for a workflow to be valid, all of the operations it contains must be valid. If this rule is not met, this validation error message will be returned:
Workflow contains invalid operations.
Operations can be invalid for a number of reasons. To resolve this error, resolve operation validation errors for all operations contained within the workflow, as detailed in Operation Validity.
In addition, if a workflow is invalid for some other reason that cannot be readily determined, this error message will be returned: