ValidateDanglingTransition
-
- UpdatedAug 3, 2023
- 2 minutes to read
- Vancouver
- Workflow
The ValidateDanglingTransition validator finds and reports any transitions that do not terminate on an activity.
Validation summary
- Risk: A workflow with dangling transitions will silently hang a workflow with no recovery options.
- Severity Level: Critical
- Valid Result: Valid
- Valid Message: Valid
- Invalid Result: Invalid
- Invalid Message: Invalid
- Suggested Action: Remove or connect the offending transition. Get the source activity name from the validation report details and resolve the issue. Then, run the validation again to test your changes.
- Publishable: No
- Runnable: No
- Related Information: None
Troubleshooting
On rare occasions, the destination of a workflow transition becomes null. The workflow canvas shows no evidence of the transition, but at run time, the workflow hangs when it encounters one of these dangling transitions. If the ValidateDanglingTransition validator reports this condition at publishing time, it blocks the publication action until the issue is resolved. If this condition is detected on a runtime check, the workflow is not allowed to execute against a current record's transaction. Instead, the system adds a critical log entry detailing the activity with the faulted transition to the current record's workflow context. To enable the workflow to execute on the next appropriate transaction, remove the faulted transition from the workflow model.
To find and remove the faulted transition:
- Make note of the workflow version and activity that contains the faulted transition as indicated in the validator details.
- Navigate to .
- In the list of workflow versions, select the workflow that has the faulted transition.
- On Workflow Version form, add the workflow activities related list. Click the menu icon, select Configure > Related Lists, move Workflow Activity-->Workflow Version from the Available list to the Selected list, and click Save.
- In the Workflow Activities related list, select the activity cited in the validator.
- In the Workflow Activity form, view the Workflow Transitions section or tab and identify the transition in that list that has no value or a null value in the To column.
- Delete this transition.
- Return to the workflow version and re-run the validation check.
The Critical warning should disappear. The workflow should execute as expected on the next appropriate transaction.