REST API - getWorkListItemsForView
The table summarizes the REST API - getWorkListItemsForView.
Request
Response
JSON | Returns a JSON representation of the content of the getWorkListItemsForViewResponse element. |
XML | Returns the content of the getWorkListItemsForViewResponse element (from the WorkListService schema) |
Example 1
Request |
GET <baseurl>/worklist/workitemsforview/1/0/2 |
Response |
{ "xml-fragment": { "startPosition": 0, "endPosition": 0, "totalItems": 1, "workItems": { "id": { "@id": "8", "@version": "8" }, "header": { "@distributionStrategy": "OFFER", "@priority": "50", "@startDate": "2013-01-22T14:24:20.077Z", "name": "GetUsersName", "description": "Get User's Name", "flags": { "scheduleStatus": "DURING" }, "itemContext": { "activityID": "pvm:001i27", "activityName": "GetUsersName", "appInstance": "pvm:0a129", "appName": "WelcomeUsersChained", "appID": "_h3SuNATvEd-PnpTAZS_CFw" } }, "state": "OPENED", "visible": true }, "customData": "<ClientView><Columns><Column name=\"name\" isSelected=\"true\" sortDirection=\"true\" isSort=\"false\"/><Column name=\"appInstanceDescription\" isSelected=\"true\" sortDirection=\"true\" isSort=\"false\"/><Column name=\"description\" isSelected=\"true\" sortDirection=\"true\" isSort=\"false\"/><Column name=\"state\" isSelected=\"true\" sortDirection=\"true\" isSort=\"false\"/><Column name=\"id\" isSelected=\"true\" sortDirection=\"true\" isSort=\"false\"/><Column name=\"priority\" isSelected=\"true\" sortDirection=\"true\" isSort=\"false\"/><Column name=\"startDate\" isSelected=\"true\" sortDirection=\"true\" isSort=\"false\"/><Column name=\"endDate\" isSelected=\"true\" sortDirection=\"true\" isSort=\"false\"/><PageSize size=\"10\"/></Columns></ClientView>" } } |
Example 2
Request |
GET <baseurl>/worklist/workitemsforview/12/0/100?resourcetype=ALL |
Response |
<xml-fragment> <startPosition>0</startPosition> <endPosition>2</endPosition> <totalItems>-1</totalItems> <workItems> <id id="1" version="2"/> <header distributionStrategy="OFFER" priority="30" startDate="2013-06-26T09:19:17.570Z"> <name>Test Work List Views</name> <description>Test Work List Views</description> <flags> <scheduleStatus>DURING</scheduleStatus> </flags> <itemContext> <activityID>SoapUI Scheduled Item</activityID> <activityName>SoapUI Scheduled Item</activityName> <appInstance>SoapUI</appInstance> <appName>SoapUI</appName> <appID>Model ID</appID> </itemContext> </header> <state>PENDED</state> <visible>true</visible> </workItems> <workItems> <id id="3" version="0"/> <header distributionStrategy="OFFER" priority="30" startDate="2013-06-26T09:19:30.983Z"> <name>Test Work List Views</name> <description>Test Work List Views</description> <flags> <scheduleStatus>DURING</scheduleStatus> </flags> <itemContext> <activityID>Scheduled to test ALL on Work View</activityID> <activityName>SoapUI Scheduled Item</activityName> <appInstance>SoapUI</appInstance> <appName>SoapUI</appName> <appID>Model ID</appID> </itemContext> </header> <state>OFFERED</state> <visible>true</visible> </workItems> </xml-fragment> |
Copyright © Cloud Software Group, Inc. All rights reserved.