Reassign item
Reassign a process task to another user
Reassigns a process task to another user.
Parameters
| Parameters | Type | Description |
|---|---|---|
| instanceId | String | Required. |
| activityInstanceId | String | Required. |
| reassignTo | Object | Required. The target user. |
| comment | String | Required. |
| reassignType | String | Optional. Defaults to "approver". |
| reassignedFrom | Array | Optional. Defaults to []. |
Syntax
await processInstance.reassignItem({
instanceId: "item_123",
activityInstanceId: "act_456",
reassignTo: { _id: "user_789" },
comment: "Reassigning to manager"
});
