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.