Dynamic human task assignment using variable expressions
- Updated: 2026/04/16
Dynamic human task assignment allows tasks to be assigned at runtime using variable expressions, adapting to process logic and contextual data.
You can now assign human tasks dynamically in a process by using variable expressions that resolve to a team or role at runtime. This eliminates the need for static, predefined assignments and allows task routing to adapt based on process logic and contextual data.
Supported task type
- Form
- Approval
- Document Validation
- Process
Supported variable expressions
| Method | Description |
|---|---|
| UserGroup:teamNameToUserGroup Expression example: lt;StrTeamName>.UserGroup:teamNameToUserGroup$ |
Converts team name provided as string to usergroup |
| $UserGroup:roleNameToUserGroup$ Expression example: lt;StrRoleName>.UserGroup:teamNameToUserGroup$ |
Converts role name provided as string to usergroup |
Configure dynamic task assignment in process
- Create a new process in the Process editor.
- Add a human task such as Form, Approval, Process, or Document Validation.
- In the properties panel, navigate to and choose Variable option.
- Enter a variable expression $UserGroup:teamNameToUserGroup$ or $UserGroup:roleNameToUserGroup$.
- Configure the expression to resolve to a valid team name or role name at runtime.
- Save the process and check it in to the public workspace.
Example: Finance approval process
This example shows how to configure a Form task that is dynamically assigned to a finance team based on a runtime variable.
Prerequisites
- Create a Form with at least one input element, such as a Text Box, Text Area, or Rich Text Editor.
- The following teams and users must exist in Automation Co-Pilot before you
begin:
- Finance_Team — includes Process_user2 and Process_user3
- IT_Team — includes Process_user1, who will begin the process
- Create a new process named Finance Approval and add the form you created as the initial start step.
- Add a Form task and assign the same form to it.
- In the Form task properties, navigate to the Task Assignment section.
- Select the Variable option.
- Enter the following expression: amp;ProcessRequest{input}{RichTextEditor0}.UserGroup:teamNameToUserGroup$.
- Save the process and check it in to the public workspace.
- To assign and execute the process, log in as a Co-Pilot Admin and assign the process to IT_Team so that Process_user1 can execute it.
- Log in as Process_user1 and start the process.
- During execution, ensure the process logic supplies the correct team name.
Enter Finance_Team as the user group input so the
Form task is dynamically assigned to that
team.
The Form task is now assigned to the Finance_Team user group.
- To complete the process, log in as Process_user2 or Process_user3.
- Navigate to the Tasks list — the dynamically assigned task is visible.
- Click the task, self-assign it, complete it, and submit it.