Use End Workflow to complete the current workflow successfully before its remaining steps run and to record why it ended early.
Step Library: Workflow > Completion
When to use this step
Use this step when you want to:
- complete the current workflow successfully without running its remaining steps;
- record a completion reason using fixed text, current variable values, or both; or
- end the workflow from inside a branch, loop, group, stage, or parallel path.
Common examples include:
- ending a request workflow because the request was resolved by another process;
- completing an approval workflow when no further approval is required; or
- stopping later iterations after a completion condition is detected inside a loop.
Use Terminate Workflow instead when the instance must be marked as terminated rather than completed. Use a condition or branch when the workflow should skip selected work but continue with later steps.
Before you begin
This step does not require a connection or special permissions beyond the permissions needed to edit and run the workflow.
Create or identify any Text, Number, Boolean, or Date variables that you want to include in the completion reason.
Configure the step
- Add End Workflow from Workflow > Completion.
- Select the step to open its configuration panel.
- Under General, enter the required Completion Reason.
- Optionally insert Text, Number, Boolean, or Date variables into the reason.
- Save or publish the workflow.
Settings
| Setting | Required | Accepted values | Visible when | Description |
|---|---|---|---|---|
| Completion Reason | Yes | Multiline text and embedded Text, Number, Boolean, or Date variables | Always | Reason shown on the completed End Workflow activity. The default is empty. The configured value must contain at least one non-whitespace text character or a variable. Flowifier resolves embedded variables when the step runs, removes whitespace and line breaks from the beginning and end of the complete reason, and then completes the workflow. There is no step-specific character-count limit. |
The variable picker does not offer Object, File, or Collection variables. Select a compatible scalar property or convert the value to Text before using it in Completion Reason. There are no conditional settings.
Data and outputs
Workflow variable effects
This step does not modify workflow variables.
Variables embedded in Completion Reason are read when the step starts. Their values remain unchanged until the workflow completes, and there are no following or child steps after End Workflow that can consume them.
Step outputs
This step does not expose step outputs.
The completion reason is activity information. It is not available as a previous-step output.
Runtime behavior
Execution and completion
When the step starts, Flowifier:
- resolves embedded variables from the current workflow execution context;
- converts the configured reason to plain text;
- removes whitespace and line breaks from the beginning and end of the complete reason;
- marks End Workflow as Finished and records the remaining reason on the activity; and
- marks the workflow instance as Completed without running any later step.
Whitespace within the reason is preserved. If the resolved reason is empty or contains only whitespace, the step still completes the workflow but the activity has no completion-reason text.
The step does not call an external provider and has no external side effects of its own.
Branches and child steps
This step does not have branches or child steps.
When it runs inside a branch, loop, group, or stage, the successful completion result propagates immediately through the enclosing containers. Later child steps, iterations, stages, and steps after the container do not run. The first completion reason is retained.
When End Workflow runs in one Run in Parallel path, all parallel paths have already started. Activities that finished before the completion are retained, while sibling activities that are still running or suspended are recorded as Cancelled when the instance completes. External effects already performed or started by sibling steps are not rolled back.
Failure, retry and resume behavior
This step does not suspend execution or perform automatic retries.
If the instance is cancelled, terminated, or fails before this step starts, the step does not run. If an enclosing step suspends before reaching End Workflow, execution resumes at the suspended work; End Workflow completes the instance only when execution later reaches it. A completed instance is not resumed, and starting a new instance evaluates the reason again from that new execution context.
Errors and limits
| Situation | Result | Resolution |
|---|---|---|
| Completion Reason is empty or contains only whitespace | The Designer marks the required setting as invalid, and the workflow cannot be published. | Enter at least one non-whitespace character or insert a supported variable. |
| A referenced variable was deleted or is no longer accessible | The Designer reports an invalid variable reference, and the workflow cannot be published. | Remove the invalid reference or select an accessible variable. |
| An Object, File, or Collection variable is required | The variable is not available for selection in Completion Reason. | Select a Text, Number, Boolean, or Date property, or convert the value to Text in an earlier step. |
| The complete reason resolves to empty or whitespace-only text | End Workflow finishes and the instance becomes Completed, but the activity has no completion-reason text. | Include fixed fallback text or ensure an embedded variable contains a non-whitespace value when a visible reason is required. |
| A parallel sibling has already started an external side effect | The instance completes and any still-open sibling activity is recorded as Cancelled, but an external effect that already occurred is not rolled back. | Place the completion decision before parallel side effects, or make sibling operations safe to repeat and verify their provider results before restarting. |
This step has no additional limits beyond the general workflow limits.
Example
Complete a request that was already resolved
Goal: Stop processing a request that another process has already resolved.
Configuration:
-
Completion Reason:
Request [Request ID] was already resolved.
Insert the Text variable Request ID between the fixed text.
Result: If Request ID contains REQ-1042, the End Workflow activity records Request REQ-1042 was already resolved., the instance becomes Completed, and no later step runs. The variable remains unchanged, and the step exposes no output.
Related information
- Terminate Workflow — stop the workflow and mark the instance as terminated instead of completed.
- Run in Parallel — understand which parallel work can already have started when one path ends the workflow.
- Repeat a Number of Times — repeat child steps until End Workflow propagates out of the loop.
Comments
0 comments
Please sign in to leave a comment.