allocateWorkItems

This request allocates the specified work items to the specified resource.

Syntax

com.tibco.wcc.base.Requests.allocateWorkItems(requestId,
                                              arrayWorkItems,
                                              txtResourceGuid);

Parameters

  • requestId - (String) Uniquely identifies the request. For more information, see Submitting Server Requests.
  • arrayWorkItems - (Array[Object]) The work items to be allocated.
    [
      {
         workItemId: workItemId,
         workItemVersion: workItemVersion,
      }
    ]

    where:

  • workItemId - (String) Unique ID for the work item.
  • workItemVersion - (String) (optional) The number of times the work item has changed state. The version number starts at 0 when the work item is created, and is incremented by 1 each time it changes state.
  • txtResourceGuid - (String) The GUID for the resource to which the work items are to be allocated.

Returns

Returns an <ap:WorkItem> element for each work item that is allocated.

For example:

<ap:Requests>
  <ap:WorkItems Id="ApiSample.allocateWorkItems">
    <ap:WorkItem>
           .
           .
           .
    </ap:WorkItem>
           .
           .
           .
  </ap:WorkItems>
</ap:Requests>

For details about the contents of the <ap:WorkItem> element, see listWorkItems.