Thursday, 17 July 2008

[Workflow] Identify Siblings of Workitem

This API returns the number of siblings of the given workitem that are in the same state, active and belong to the current user.

The details related to each workitem are provided in the main node of the Meta4Object (one record per work-item). The method Get Value can be used to identify the value of the BPC variables.

It can be used to identify, e.g. all employees with vacations pending approval. The user has a task assign to approve the vacations of a specific employee. To avoid that the user has to enter the presentation for each request individually, all pending requests can be identified and worked off at the same time.


Technical details
  • Meta4Object: SWF_INSTANCE
  • Node Structure: SWF_INSTANCE
  • Method: GET_WORKITEM_SIBLINGS (ARG_ID_WORKITEM)
    Returns number of siblings of the given workitem.The work-items can be retrieved from the property ID_WORKITEM.
  • Method: GET_VALUE (ARG_ID_VARIABLE)
    Returns the value of the given variable for the currently positioned record.

No comments: