跳转至

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#

  1. Validates that the input object is not null.
  2. Retrieves the all the flow paths in the specified Flow.
  3. Checks if the EarliestFlowPath, MainFlowPath, and LatestFlowPath of the Process Activity Definition exist within those flowpaths.
  4. Returns the validation results along with the Process Activity Definition.