Creating and Managing Supervised Work List Views - Example 2
You may want to provide views based on different filters of the data.
For example, to allow a supervisor to select a particular process instance and see a particular user’s outstanding, allocated work for that process instance:
Procedure
- Get the process instance ID. You can get this information from any of the listProcessInstances, queryProcessInstances, and queryProcessInstancesAlt operations.
- Use listActionAuthorisedEntities and getOrgModelEntity in the same way described in Creating and Managing Supervised Work List Views - Example 1.
-
Call
getAllocatedWorkListItems, specifying the organizational entity whose list you want to view, and with a filter set for the appropriate process instance.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:api="http://api.brm.n2.tibco.com"> <soapenv:Header/> <soapenv:Body> <api:getAllocatedWorkListItems numberOfItems="10" startPosition="0"> <entityID entity-type="ORGANIZATIONAL_UNIT" guid="_i640QDMeFvFvgjfN_w"/> <orderFilterCriteria> <filter>appInstance='pvm:0a125'</filter> </orderFilterCriteria> </api:getAllocatedWorkListItems> </soapenv:Body> </soapenv:Envelope>
<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="">0</endPosition> <totalItems xmlns="">1</totalItems> <workItems xmlns=""> <id id="11" version="2"/> <header distributionStrategy="OFFER" priority="50"> <name>GroupB</name> <description>GroupB</description> <flags> <scheduleStatus>DURING</scheduleStatus> </flags> <itemContext> <activityID>pvm:001i21</activityID> <activityName>GroupB</activityName> <appInstance>pvm:0a125</appInstance> <appName>AMXSupervisor</appName> <appID>_fQ0ZAHClEeCF3qXLa8gNUw</appID> <appInstanceDescription>turbot</appInstanceDescription> </itemContext> </header> <attributes attribute1="789" attribute2="major" attribute3="123.45" attribute4="GroupB"/> <state>PENDED</state> <visible>true</visible> </workItems> </getWorkListItemsResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
Copyright © Cloud Software Group, Inc. All rights reserved.