SOAP API - getWorkListItems
The table summarizes the SOAP API - getWorkListItems.
Request | Uses the getWorkListItems element (from the WorkListService schema) |
Parameter notes |
Enter one of
resourcesRequired or
entityID, plus optionally
qualifierSet and
orderFilterCriteria:
|
Response | Returns a getWorkListItemsResponse element (from the WorkListService schema) |
Example 1 | Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:api="http://api.brm.n2.tibco.com"> <soapenv:Header/> <soapenv:Body> <api:getWorkListItems startPosition="0" numberOfItems="5" getTotalCount="true" getEnhancedAttributes="true"> <entityID model-version="-1" entity-type="POSITION" guid="_5i1V0CfLEeChutsy_vK9tg" > </entityID> <orderFilterCriteria> <order>id ASC</order> <filter>state=OFFERED</filter> </orderFilterCriteria> </api:getWorkListItems> </soapenv:Body> </soapenv:Envelope> |
Response:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Header/> <SOAP-ENV:Body> <getWorkListItemsResponse xmlns="http://api.brm.n2.tibco.com"> <startPosition xmlns="">0</startPosition> <endPosition xmlns="">2</endPosition> <totalItems xmlns="">3</totalItems> <workItems xmlns=""> <id id="2" version="0"/> <header distributionStrategy="OFFER" priority="50"> <name>DisplayMessage</name> <description>Display Message</description> <flags> <scheduleStatus>DURING</scheduleStatus> </flags> <itemContext> <activityID>pvm:001if</activityID> <activityName>DisplayMessage</activityName> <appInstance>pvm:0a122</appInstance> <appName>WelcomeUsers</appName> <appID>_-fPYwCIVEeCnP8eZZTCDGg</appID> </itemContext> </header> <state>OFFERED</state> <visible>true</visible> </workItems> <workItems xmlns=""> <id id="3" version="0"/> <header distributionStrategy="OFFER" priority="50"> <name>DisplayMessage</name> <description>Display Message</description> <flags> <scheduleStatus>DURING</scheduleStatus> </flags> <itemContext> <activityID>pvm:001io</activityID> <activityName>DisplayMessage</activityName> <appInstance>pvm:0a123</appInstance> <appName>WelcomeUsers</appName> <appID>_-fPYwCIVEeCnP8eZZTCDGg</appID> </itemContext> </header> <state>OFFERED</state> <visible>true</visible> </workItems> </getWorkListItemsResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope> |
|
Example 2 | Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:api="http://api.brm.n2.tibco.com"> <soapenv:Header/> <soapenv:Body> <api:getWorkListItems <getEnhancedAttributes="true" startPosition="0" numberOfItems="100"> <resourcesRequired>ALL</resourcesRequired> </api:getWorkListItems> </soapenv:Body> </soapenv:Envelope> |
Response:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Header/> <SOAP-ENV:Body> <getWorkListItemsResponse xmlns="http://api.brm.n2.tibco.com"> <startPosition xmlns="">0</startPosition> <endPosition xmlns="">2</endPosition> <totalItems xmlns="">-1</totalItems> <workItems xmlns=""> <id id="5" version="0"/> <header distributionStrategy="OFFER" endDate="2013-06-28T09:47:33.713Z" priority="30" startDate="2013-06-26T09:47:33.713Z"> <name>Test Entity Work Lists Group</name> <description>Test Entity Work Lists Group</description> <itemContext> <activityID>SoapUI Scheduled Item</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> <workItems xmlns=""> <id id="6" version="0"/> <header distributionStrategy="OFFER" endDate="2013-06-28T09:47:33.987Z" priority="30" startDate="2013-06-26T09:47:33.987Z"> <name>Test Entity Work Lists Resource</name> <description>Test Work Lists Resource</description> <itemContext> <activityID>SoapUI Scheduled Item</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> <workItems xmlns=""> </getWorkListItemsResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope> |