Use Run Workflow to reuse a sequence of steps that has been moved into a Component Workflow. The step starts one exact published Component version, allowing the Parent to wait for its result or continue while the Component Child runs independently.
Step Library: Workflow > Instance Management
When to use this step
Use this step when you want to:
- move a sequence of commonly used steps into a Component Workflow and reuse it from multiple workflows;
- maintain and publish shared workflow logic separately instead of copying the same steps into every workflow;
- pass different Parent values into the same reusable process through Component inputs;
- wait for the reusable process and use its exposed outputs; or
- start the reusable process as independent work without waiting for its completion.
Common examples include:
- using the same employee onboarding, document processing, notification, or compliance process in several workflows;
- sending an order quantity to a shared calculation process and using the calculated total in the following steps;
- starting independent work, such as archiving or reporting, without making the current workflow wait.
Keep the steps directly in the current workflow when the logic is specific to that workflow and does not benefit from reuse, separate publication, or independent versioning.
When deciding whether to enable Wait for completion:
- enable it when following steps need a result from the Component Workflow;
- disable it when the Component Workflow can continue independently and the current workflow does not need its result.
Before you begin
- Create and publish the Component Workflow that you want to run.
- Identify values or compatible variables for every Component input that has no published initial value.
- If the Parent must use a Component result, mark the corresponding Component workflow variable as Expose as output and enable Wait for completion in the Parent.
- Ensure that you can edit and publish the Parent workflow.
Configure the step
- Add Run Workflow from Workflow > Instance Management.
- Select the step to open its configuration panel.
- Select the exact Published version of the Component Workflow.
- Keep Wait for completion enabled when following steps need the Component result. Disable it when the Parent should continue immediately.
- Configure every required field under Inputs. Leave an optional input as Not set to use its published Component default.
- Resolve any Problems, then save or publish the Parent workflow.
Settings
| Setting | Required | Accepted values | Visible when | Description |
|---|---|---|---|---|
| Published version | Yes | One published version of a Component Workflow | Always | Pins the step to the selected Component workflow and exact published version. A later Component publication does not change this pin. When a newer version exists, use Upgrade to v<version> and republish the Parent explicitly. A missing or deleted pin blocks publication. |
| Wait for completion | No | On or off | A Published version is selected | Defaults to on. When on, the Parent waits for the Child and exposes the pinned Component outputs after successful completion. When off, the step completes after requesting the Child, exposes no outputs, and does not receive the Child's later result. |
| Inputs | Conditional | Fixed Text, Number, Yes/No, or Date value; or a compatible variable with the exact input data type. File, Object, and Collection inputs accept compatible variables only. Object values must also use the exact schema. | The selected Component version declares one or more inputs | Each row uses the display name and data type published by the Component. An input without a published initial value is required. An input with an initial value defaults to Not set, which uses that published value. Empty Text is a valid Text value; required means a binding must be present. |
The selected Component version defines the input rows and output contract stored on this step. Upgrading preserves existing mappings for revalidation; incompatible or newly required mappings remain visible as Problems until corrected.
Data and outputs
Workflow variable effects
This step does not modify Parent workflow variables.
Input variables are read when the step starts and are not changed. Changes made inside the Component belong to the Child instance and do not directly change Parent workflow variables.
Step outputs
| Step output | Type | Available when | Scope | Description |
|---|---|---|---|---|
| Each exposed Component output | The published Component variable type; Object and Object Collection outputs retain their published schema | Wait for completion is on, the selected version exposes the output, and the Child completes successfully | Available as a previous-step output to later steps in the same Parent execution path | Uses the exact output display name and value returned by the pinned Component version. An output that is not returned is not added to the Parent. |
Disabling Wait for completion removes all Component step outputs from the Designer. A Child that fails, is cancelled, or terminates does not expose outputs to the Parent.
Runtime behavior
Execution and completion
When the step starts, Flowifier:
- resolves every configured fixed input and variable reference;
- applies the published initial value for each input left Not set;
- validates the resolved values against the input contract stored for the pinned Component version;
- creates one linked Child instance for the invocation; and
- either suspends the Parent or completes the step according to Wait for completion.
With Wait for completion on, the Parent remains Waiting until the Child reaches a terminal state. Successful completion resumes the Parent at this step, copies only the pinned Component outputs into the Parent's previous-step output scope, and continues with the next step.
With Wait for completion off, the Parent step completes after the Child start is requested. The Child continues independently, and its later completion, failure, cancellation, or termination does not change the already completed Parent step.
The Child appears under the Run Workflow activity and links back to its Parent. When the Parent has an authenticated Started By user, newly created Component Children inherit that user. Anonymous or machine-triggered Parents remain without a user attribution.
Branches and child steps
This step does not have Designer branches or contained child steps. It creates a separate Component Child workflow instance.
The Child runs the exact published version pinned by the Parent. Publishing a newer Component version does not retarget existing Parent versions or running instances. Repeated steps create a separate Child for each invocation. Starting the Parent again also creates new Child instances.
Component Workflows can invoke other Component Workflows. The top-level instance starts at depth 0, and each Component Child increases the depth by one. A new invocation that would exceed depth 10 fails before creating another Child. Direct and indirect Component invocation cycles are rejected when the workflow is published.
Failure, retry and resume behavior
Run Workflow does not automatically retry a failed, cancelled, terminated, paused, missing, or invalid Component invocation.
With Wait for completion on:
- a successful Child completion resumes the suspended Parent once and continues with the next step;
- a faulted or cancelled Child fails the Parent's Run Workflow activity and faults the Parent instance;
- a terminated Child faults the Parent and displays The Component workflow terminated before completing. on the Parent activity; the configured termination reason remains on the terminating activity in the Child instance; and
- cancelling the Parent does not cancel the Child. The Child continues independently, and its later terminal result does not resume the cancelled Parent.
Child cancellation recovery may not be immediate. The Parent can remain Waiting until the cancellation recovery scan processes the terminal Child.
Component invocation messages use one invocation identifier as an idempotency boundary. Message redelivery reuses the same Child instead of starting another one. A deliberate repeat or a new Parent execution is a new invocation and can repeat any external side effects performed by the Component. Check the affected provider before rerunning a Component that may have partially completed.
Errors and limits
| Situation | Result | Resolution |
|---|---|---|
| No Published version is selected | The Designer shows Select a published Component Workflow, and the workflow cannot be published. | Select a published Component version. |
| The pinned Component version is missing or deleted | The reference is preserved, the Designer reports that the pinned version is unavailable, and publication is blocked. | Select another published Component version. |
| A newer Component version is available | The existing pin remains unchanged and the Designer shows an update warning. | Review the new contract, select Upgrade to v<version>, correct incompatible mappings, and republish the Parent. |
| A required Component input has no binding | The Designer shows Select a value for this Component input., and publication is blocked. | Enter a supported fixed value or select a compatible variable. |
| An input has the wrong data type or Object schema | The Designer reports an exact-type or exact-schema Problem. If incompatible persisted data reaches execution, the step fails before Child creation. | Use a fixed value of the declared primitive type or select a variable with the exact data type and, for Objects, schema. |
| The stored input or output snapshot differs from the pinned version | Publication is rejected because the Component contract is stale. | Re-select or upgrade the published Component version, review its inputs and outputs, and publish again. |
| The selected Component Workflow is paused | The step fails without creating a Child and is not retried automatically. | Resume the Component Workflow, then start a new Parent instance. |
| The invocation would create a direct or indirect Component cycle | Publication is blocked. | Remove the circular Component reference. |
The invocation would exceed Component depth 10
|
The step fails before creating another Child. | Reduce the number of nested Component invocations. |
| The Child faults or is cancelled while the Parent waits | The Run Workflow activity fails and the Parent faults. Child cancellation propagation can be delayed until recovery processing. | Open the linked Child instance, correct or recover the cause, and start a new Parent instance when appropriate. |
| The Child terminates while the Parent waits | The Parent faults with a generic Component-termination hint. The configured termination reason remains in the Child activity. | Open the linked Child instance and review its terminating activity. |
| The Parent is cancelled while the Child is running | The Parent remains cancelled; the Child continues independently and can still perform side effects. | Open and cancel the Child separately if it must not continue. |
| A concurrent Child later fails, is cancelled, or terminates | The Parent remains unaffected because Run Workflow already completed. | Monitor or recover the linked Child separately. |
| The Parent is run again or the step is deliberately repeated | New Child instances are created and the Component can repeat external side effects. | Use provider-safe test data and check whether the Component's operations are idempotent before rerunning. |
Example
Calculate a value in a reusable Component
Goal: Pass an order quantity to a Component Workflow, wait for its calculation, and use the returned total in the Parent.
Configuration:
-
Published version:
Calculate order total · 2.0 - Wait for completion: On
-
Quantity: Number variable
Order quantity
The Component version exposes a Number workflow variable named Order total as an output.
Result: The Parent suspends while one linked Child instance runs Calculate order total · 2.0. After successful Child completion, the Parent resumes and later steps in the same execution path can reference the Order total Number output. If the Child does not complete successfully, the Parent does not receive the output.
Related information
- Component Workflows — create reusable workflow logic with published input and output contracts.
- Workflow Begin — define Component inputs.
- Expose as output — make a Component workflow variable available to waiting Parent workflows.
- Workflow variables — provide dynamic input values and store results explicitly when they must persist beyond previous-step output scope.
- Instance Activities — inspect the linked Parent and Child instances and diagnose Child failures or termination reasons.
Comments
0 comments
Please sign in to leave a comment.