IPP&E workflow handlers > Action handlers
IPP-set-next-approving-level-from-OBS
Description
This handler sets the value of the Next Approving Level attribute on a functional work package revision.
For each target object, it does the following:
- Checks if the target object is a functional work package revision.
- Checks if the value of the Next Approving Level attribute is set.
- If Next Approving Level is NULL, it gets the value of the functional organization of the resource package revision, otherwise it skips this step.
- If Next Approving Level is already set, the handler:
- Gets the OBS container attached to the WBS root of the resource package revision.
- Gets the revision and variant rules set in the IPPRevisionRuleForOBSConfiguration and IPPVariantRuleForOBSConfiguration preferences respectively.
- Configures the OBS container with the revision and variant rules obtained in the previous step.
- Get all the parents (OBS elements) of the next approving level OBS element set on the target resource package revision.
- Iteratively gets the functional organization lead user for each parent OBS element.
- Sets the next approving level as any of the parent OBS elements whose functional organization lead user is same as the current session user.
- Creates an array of approvers (one of whom approved the task) for the Estimation Approvers property.
Syntax
IPP-set-next-approving-level-from-OBS
Arguments
-include_type The object type whose property will be set.
-property The property whose value will be set.
Placement
Requires no specific placement.
Restrictions
None.
Note
A WBS work package is identified based on the Work Package check box on the WBS element revision.