Skip to Main Content
Return to Navigation

Considerations for Enabling a Trigger Point in a PeopleCode Event

The events in which a trigger point is to be executed must include PeopleCode. The following is a minimal example:

Declare Function GetRuleService PeopleCode FUNCLIB_EOCF.EOCF_DE_PUBLIC FieldFormula; GetRuleService().reset.SET_CONTROL = &mySetControlValue;
GetRule Service.fireEvent(My_Trigger_Point_Code_Name); 

Note: The use of the reset property on the first line is critical to the framework's correct functioning. If reset is not used, the state of the RuleService (the runtime API for triggering the decision engine) is unknown from previously executed PeopleCode.