Assigning and unassigning a user
Cases can have a user assigned to them. This allows for user to see if a particular case is already in progress.
This page shows how a user can be assigned and unassigned to and from a case using code.
Assigning a user
There are two methods available to assign a user:
Using the endpoint
POST /api/document/{documentId}/assign
and providing a user id in the request body.
{
"assigneeId": "some UUID"
}
Using an expression inside a process and providing the email address of the user
${documentDelegate.setAssignee(execution, "assignee email address")}
Unassigning a user
There are two methods available to remove the assigned user from a case:
Using the endpoint
POST /api/document/{documentId}/unassign
.Using an expression inside a process:
${documentDelegate.unassign(execution)}
Related
Last updated