SetName Activity
Purpose: Set the name of the workflow instance to a specified value. This allows you to dynamically update the workflow instance name during execution.
Input Properties
Value
The value to set the workflow instance's name to.
Type: string
Default: "" (empty string)
Required: Yes
Note: Can be a literal string, expression, or variable reference. Supports all Elsa expression syntaxes.
Output Properties
This activity has no output properties.
Usage Example
Scenario: Set workflow name based on processed item
Configuration:
- Value: "Processing {{ Variables.ItemName }}"
Result:
- The workflow instance name is updated to include the item name
- Example: "Processing Product123"
- The name is visible in workflow management interfaces
Important Notes
- The workflow instance name is updated immediately when this activity executes
- The name is visible in workflow management UIs and can be used for filtering/searching
- You can set the name multiple times during workflow execution
- Use expressions to create dynamic names based on workflow state
- The name is stored with the workflow instance and persists
- Useful for tracking and identifying workflow instances in logs and dashboards
Related Activities
- SetVariable - Set workflow variables
- Correlate - Set the workflow correlation ID