ValidateProcessActivityFlowPaths#
Overview#
Validates whether the Flow paths of a Process Activity Definition exist and belong to a specified Flow.
Input Object#
| Name | Type | Description |
|---|---|---|
| ProcessActivityDefinition | IIndEqProcessActivityDefinition | The Process Activity Definition to be validated. |
| Flow | IFlow | The Flow against which the flow paths should be validated. |
Output Object#
| Name | Type | Description | | ---------------.--------- | ------------------------------ | ---------------------------------------------------------| | ProcessActivityDefinition | IIndEqProcessActivityDefinition| The Process Activity Definition that was validated. | | isEarliestFlowPathValid | bool | True if the EarliestFlowPath exists and belongs to the Flow. | | isMainFlowPathValid | bool | True if the MainFlowPath exists and belongs to the Flow. | | isLatestFlowPathValid | bool | True if the LatestFlowPath exists and belongs to the Flow.|
How it works#
- Validates that the input object is not null.
- Retrieves the all the flow paths in the specified Flow.
- Checks if the
EarliestFlowPath,MainFlowPath, andLatestFlowPathof the Process Activity Definition exist within those flowpaths. - Returns the validation results along with the Process Activity Definition.