Claim work item
claim_work_itemTakes ownership of an open approval work item offered to your group so you can approve or reject it; checks that it is available and not already held before claiming.
Instructions
Claim an open approval work item offered to a group you belong to (offered: true in list_work_items), so it becomes yours to approve or reject with decide_work_item; the rest of the group can no longer claim it. Before writing anything it reads the case as you and refuses an item that is closed, already held by someone (you included), or not offered to you. release_work_item gives it back. The claim executes as you, and the result says whether midPoint now shows the item as yours. userName and roleName are the midPoint names (the unique name attribute, such as a login, not display names) of the objects the OIDs point to, as list and get results give them; the call is refused when they don't match, so the person confirming it reads the right names. Respects the write gate. When you write to a person, name people, roles and requests by their display names rather than OIDs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caseOid | Yes | OID of the case (caseOid from list_work_items) | |
| roleName | Yes | midPoint name of the role (or other object) the request adds or removes; empty only when midPoint doesn't show you its name | |
| userName | Yes | midPoint name (login) of the person the request is for; empty only when midPoint doesn't show you their name | |
| workItemId | Yes | id of the work item within the case (id from list_work_items) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | the JSON body of the midPoint REST request, when it has one | |
| case | No | the case name | |
| tool | Yes | the tool that produced this result | |
| acting | Yes | who midPoint executed this call as | |
| dryRun | Yes | ||
| method | Yes | ||
| object | No | the focus the case changes | |
| result | No | ||
| server | Yes | write gate, features and versions of this server | |
| target | No | what was requested | |
| applied | Yes | ||
| caseOid | Yes | ||
| subject | Yes | the identity midPoint executed the call as (or, in a dry run, would) | |
| summary | Yes | ||
| endpoint | Yes | ||
| confirmed | Yes | true when the case read back after the call shows the change: a claimed item held by you alone, or a released item held by nobody (or no longer shown to you) | |
| offeredTo | Yes | the group the item is offered to, or was claimed from | |
| workItemId | Yes |