REST API - completeWorkItem
The table summarizes the REST API - completeWorkItem (in ClientService).
Request
Format |
PUT <baseurl>/clientservice/complete/<id>/<userid>/<typeuid>/<typeversion> |
Path parameters | id: ID of the work item to be completed.
userid: GUID of the resource that wants to complete the work item. typeuid: Unique ID of the work type from which the work item is derived. typeversion: Version number of the work type from which the work item is derived. |
Query parameters |
|
Body | DataPayload element (Required): Data payload for the specified work item.
See Valid Format for DataModel for information about the valid format of this data. |
Example
Headers used in example:
Request |
PUT <baseurl>/clientservice/complete/36/8C8AD3FD-3600-4E7D-9DF4-0280F8506635/WT___uST8O5nEeCUrZpLKntDNw/1.0.0.20170823111324812 |
Request Body |
{"payloadModel": { "@payloadMode": "JSON", "serializedPayload": "{\"items\":[{\"$param\":\"TextField\",\"$value\":[\"Need help with Model 9000.\"],\"type\":\"String\",\"mode\":\"INOUT\"},{\"$param\":\"ArrayTextField\",\"$value\":[],\"type\":\"String\",\"mode\":\"INOUT\"}]}" }} |
Response |
{ "xml-fragment": { "@isSuccessful": "true", "payloadModel": { "@payloadMode": "JSON", "serializedPayload": "{"items":[{"$param":"TextField","$value":["Need help with Model 9000."],"type":"String","mode":"INOUT"},{"$param":"ArrayTextField","$value":[],"type":"String","mode":"INOUT"}]}" }, "workTypeDetail": { "@uid": "WT___uST8O5nEeCUrZpLKntDNw", "@version": "1.0.0.20170823111324812" }, "presentation": { "@formIdenitifier": "http://10.129.40.599:8080/bpmresources/1.0.0.20170823111324812/openspaceGWTPull_DefaultChannel/PageflowProcess/PageflowProcessProcess2/Pageflow2/Pageflow2.gwt.json", "@type": "GWT_FORM" }, "workItem": { "@id": "36", "@version": "-1" } } } |
Copyright © Cloud Software Group, Inc. All rights reserved.