requestWorkItemPerformanceForTemplate

This operation returns the number of work items that changed to the specified states, for the given process template, during the granularity period.

You can check for the following state change:

  • OFFERED
  • ALLOCATED
  • PENDED
  • COMPLETED
  • SUSPENDED
  • CANCELLED

Note that the counts returned by this operation are deltas, that is, it is the number that changed to each state during the period, not the number that were in that state during the period.

Each state change count is returned inside of an <entry element, inside of the <period element that represents the granularity period (see Granularity).

The following example response from a requestWorkItemPerformanceForTemplate operation shows that 7 work items generated from instances of CSCallbackProcess were changed to an OFFERED state, and 5 were changed to an ALLOCATED state, during the first granularity period (index=0):

Response:
...
<measure xmlns="">
   <index>0</index>
   <id xsi:type="base:ProcessTemplateId" xmlns:api="http://api.ec.n2.tibco.com" xmlns:base="http://base.api.ec.n2.tibco.com" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <processTemplateName>CSCallbackProcess</processTemplateName>
   </id>
<period>
   <index>0</index>
   <duration>
      <startDate>2011-08-27T00:00:00.000Z</startDate>
   </duration>
   <entry>
      <index>0</index>
      <value>7</value>
      <type>OFFERED</type>
   </entry>
   <entry>
      <index>1</index>
      <value>5</value>
      <type>ALLOCATED</type>
   </entry>
...

For additional information, see requestWorkItemPerformanceForResource.