Complete A WorkItem.
Complete a WorkItem.
- A work item may only be completed by:
- One of its assignees
- A delegate of one of its assignees
- A privileged, administrator user
- A work item may be completed by any of the actions associated with its work item type
- Work items may be completed via an incoming notification (e.g. email) This may be done by replying to an email sent by the work item queue.
- The client application will be notified when a work item is completed.
- The client application must provide a REST service to be notified of completion. The service will be passed:
- The form data of the work item that has been completed
- The action that completed the work item
- Useful work item metadata
Sequence Diagram
<img src='../../workitem-service/api/docs/complete-workitem.png'>
Request
URI
POST
https://{api_host}/work-item-service/api/workitems/{workItemId}/actions/{actionId}
COPY
Path Parameters
string
workItemId
Required
The workitem id.
string
actionId
Required
The action id.
Request Body
WorkItemActionComplete of type(s) application/json
Optional
{
"workItemActionId": "string",
"formData": {
"entries": [
{
"key": "string"
}
]
},
"workItemId": "string"
}
string
workItemActionId
Optional
workItemActionId
string As uuid As uuid
workItemId
Optional
workItemId
Responses
200
Operation doesn't return any data structure
Work Item Operations
POST
Cancel the specified WorkItem.
POST
Complete A WorkItem.
POST
Completes the WorkItem If It Is still active.
POST
Create A new WorkItem for the given service.
PUT
Create A set Of WorkItems
DELETE
Delete the WorkItem corresponding To the given id.
GET
Retrieve A list Of WorkItem.
GET
Retrieve A list Of WorkItem.
POST
Retrieve A set Of form data for the specified workItem and formElement.
GET
Retrieve the details Of the given WorkItem.
GET
Retrieve the WorkItem Form from for the selected WorkItem from the corresponding Service Provider.
POST
Retrieves the metadata Of multiple dynamic elements In single call. It combines the retrieval Of element's ElementState and the list Of permissible values for each element.
PUT
Update the WorkItem which corresponds To the given Id.