SetAssigneeInput
SetAssigneeInput Input Type
Audience: Programmer
Input type for the setAssignee mutation that updates the assignee of a running workflow instance.
Fields
workflowID
String!
Yes
The unique identifier of the workflow instance to update
workflowRunID
String!
Yes
The run ID of the workflow instance to update
assigneeID
ID
No
The user ID to assign to the workflow. If null or omitted, defaults to the current authenticated user
Usage
This input type is used with the setAssignee mutation to specify which workflow instance to update and who should be assigned to it.
Example with specific assignee
{
workflowID: "picking-workflow-12345",
workflowRunID: "abc123de-f456-7890-ghij-klmnopqrstuv",
assigneeID: "user_456789"
}Example with current user (omit assigneeID)
Field Details
workflowID
The workflow instance identifier in Temporal. This is typically a business-meaningful ID that uniquely identifies a workflow execution along with the workflowRunID.
workflowRunID
The run ID of the workflow instance. This is a UUID generated by Temporal that, combined with the workflowID, uniquely identifies a specific workflow execution.
assigneeID
Optional field that specifies the user to assign to the workflow. When not provided:
The mutation will automatically use the current authenticated user's ID
This ensures that a workflow always has an assignee after the operation
Related
Mutation:
setAssigneeResponse Type:
SetAssigneeResponseQuery:
workflowAssignee
Last updated
Was this helpful?
