Triggers

For each trigger in the Business Type there can be a corresponding public method containing the business logic. These methods return an integer value used to control the handling of events (such as blocking or overriding events).

Regardless of the naming convention you choose, you must always register the JPO method with the trigger event using Business Modeler or the ENOVIA Business Process Services Trigger Manager. To associate a JPO method as a trigger program, use the JPO program name as the trigger program name and give as input arguments:

-method METHOD_NAME -construct ${OBJECTID}

Where METHOD_NAME is the name of the method in the JPO.

Follow this with any additional arguments you want to pass into the JPO method.