Customizing Mass Promotion

As installed, X-CAD Design Management includes an IEF-MassPromoteConfig object. The IEF-MassPromoteValidationRuleJPO attribute names the JPO that implements the methods for validation during a mass promote operation, however, these methods must be created to support your organization's business rules.

X-CAD Design Management provides a default JPO, IEFMassPromoteValidationRule, for this purpose.

The validateObjectForPromotion method is fired during the promote operation and is passed:

  • the business object id of the root node
  • the business object id of the current child node
  • boolean denoting parent selection (true=selected; false=not selected)
  • boolean denoting child selection (true=selected; false=not selected)

If the JPO returns a non-empty string starting with "false|", it is considered an error condition and is added to the list of consolidated error messages.

The validateObjectForSelection method is fired when a user selects a node in the Promote page and is passed the business object id of the current node. If the JPO returns a non-empty string starting with "false|", that string is shown to the user in a pop-up message and the node is not selected.