TriggerBusinessEvent
Mon 01 January 2018Syntax
TriggerBusinessEvent(BUSPROCESS.bus_proc_name, BUSACTIVITY.activity_name,BUSEVENT.bus_event_name)
Description
Use the TriggerBusinessEvent funciton to trigger a business event and the workflow routings associated with that event. This function should only be used in Workflow PeopleCode. You can edit Workflow PeopleCode via the Event Definition dialog while you are defining a workflow event.
Parameters
Field or Control |
Definition |
---|---|
bus_proc_name |
A string consisting of the name of the business process, as defined in the Business Process Designer, prefixed with the reserved word BUSPROCESS. |
activity_name |
A string consisting of the name of the business activity, as defined in the Business Process Designer, prefixed with the reserved word BUSACTIVITY. |
bus_event_name |
A string consisting of the name of the business event, as defined in the Business Process Designer, prefixed with the reserved word BUSEVENT. |
Returns
Returns a Boolean value: True if successful, false otherwise. The return value is not optional.
Note: You must check the return from TriggerBusinessEvent to see if you have an error. If you have an error, all of the updates up to that TriggerBusinessEvent process are rolled back. However, if you donât halt execution, even if you have an error, all updates after the TriggerBusinessEvent process are committed. This could result in your database information being out of synch.