Use Set Instance Name to replace the name of the current workflow instance with fixed text, current variable values, or a combination of both.
Step Library: Workflow > Instance Management
When to use this step
Use this step when you want to:
- give instances a recognizable business name;
- include an identifier such as an order number, request ID, or customer name in the instance name;
- change the name later in the workflow when more identifying information becomes available.
Common examples include:
- naming an instance after an order number or request ID;
- including a customer, employee, or project name; or
- replacing an initial generic name after the workflow has collected better identifying information.
Use Log to Instance Log instead when you want to record information in the instance activity history without changing the instance name.
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 instance name.
Configure the step
- Add Set Instance Name from Workflow > Instance Management.
- Select the step to open its configuration panel.
- Under General, enter the required Instance Name.
- Optionally insert Text, Number, Boolean, or Date variables into the name.
- Save or publish the workflow.
Settings
| Setting | Required | Accepted values | Visible when | Description |
|---|---|---|---|---|
| Instance Name | Yes | Single-line text and embedded Text, Number, Boolean, or Date variables | Always | Name to persist for the current workflow instance. The default is empty. The configured value must contain at least one text character or variable. Flowifier resolves embedded variables when the step runs and rejects the result if it is empty or contains only whitespace. 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 Instance Name.
Data and outputs
Workflow variable effects
This step does not modify workflow variables.
Variables embedded in Instance Name are read when the step starts. Their values remain unchanged and retain their existing scope for following or nested steps.
Step outputs
This step does not expose step outputs.
The persisted instance name cannot be selected as a previous-step output by following or nested steps.
Runtime behavior
Execution and completion
When the step starts, Flowifier:
- resolves each embedded variable from the current workflow execution context;
- converts Text, Number, and Boolean values to text and converts Date values to an ISO 8601 UTC timestamp;
- checks that the complete rendered name contains at least one non-whitespace character;
- replaces the persisted name of the current workflow instance; and
- marks the step as Finished before continuing with the next step.
Each successful execution replaces the instance name that was stored previously. The updated name is persisted immediately and remains visible after the workflow completes, fails, is cancelled, or is terminated by a later step.
The step changes only the current Flowifier instance. It does not call an external provider or create an external side effect.
Branches and child steps
This step does not have branches or child steps.
It can run inside a branch, loop, group, or parallel path. Every successful execution replaces the current instance name; it does not create a value for child or following steps.
Failure, retry and resume behavior
This step does not suspend execution or perform automatic retries.
If the rendered name is empty or contains only whitespace, the step fails before changing the instance name. If Flowifier cannot persist a valid name, the step also fails. In both cases, the failure follows the workflow's normal error propagation.
If the instance is cancelled before this step starts, the step does not run. The step does not cancel or terminate the workflow by itself and has no resume behavior. Starting a new workflow instance applies the name only to that new instance.
Errors and limits
| Situation | Result | Resolution |
|---|---|---|
| Instance Name is empty | The Designer shows Instance name must contain text or a variable, and the workflow cannot be published. | Enter text or insert a supported variable. |
| Instance Name contains only whitespace | The Designer accepts the value, but the step fails at runtime before changing the name. | Enter at least one visible character. |
| The rendered name is empty or contains only whitespace | The step fails before changing the name. The activity reports: “The instance name resolved to an empty value. Enter text or use a variable that resolves to a non-empty value.” | Enter fixed text or ensure an embedded variable resolves to a non-empty value. |
| A referenced variable was deleted | The Designer reports an invalid variable reference, and the workflow cannot be published. | Remove the invalid reference or select an existing compatible variable. |
| An Object, File, or Collection variable is required | The variable is not available for selection in Instance Name. | Select a Text, Number, Boolean, or Date property, or convert the value to Text in an earlier step. |
| A referenced root variable is unavailable at runtime | The step fails before changing the instance name. | Ensure the variable exists in that execution path, then run a corrected published workflow. |
A selected scalar property is missing or null
|
The property contributes empty text. The step continues if other content remains; otherwise, it fails because the complete rendered name is empty. | Ensure the property has a value or include non-empty fixed text. |
| Flowifier cannot persist the new name | The step fails and the workflow does not continue normally. | Review the failed activity and retry with a corrected workflow after the persistence issue is resolved. |
This step has no additional limits beyond the general workflow limits.
Example
Name an instance with its order number
Goal: Make each workflow instance easy to identify by the order it processes.
Configuration:
-
Instance Name:
Order [Order Number]
Insert the Number variable Order Number after the fixed text Order .
Result: If Order Number contains 4711, the step changes the current instance name to Order 4711. The variable remains unchanged, and the workflow continues with the next step.
Related information
- Log to Instance Log — record information in an instance activity without changing the instance name.
- Workflow variables — store values that can be included in an instance name.
- Workflow instances — inspect instance names, status, and activity history.
Comments
0 comments
Please sign in to leave a comment.