The Event Definitions service stores the events that an organization can use to trigger a process flow. Aptify provides a set of events with the standard system; see "About the Delivered Event Definitions as Delivered" on page 148 for for information on the set of delivered Event Definitions.
A sample Event Definitions record is shown in the figure below.
Anchor
In addition, an organization can create new Event Definitions by following these steps:
- Open a new record from the Event Definitions service.
- Enter a Name for the event.
- Enter an event category in the Category field. This field links to the Event Categories service (see "Creating Event Categories" on page 92).
- Enter a Description for the event (required).
- Specify a scope for the event from the Event Scope drop-down list.
- Select Global if the event is generic and is applicable system-wide. For example, the AfterSave event is generic since it is applicable to every record in the system.
- Select Entity if the event is related to a specific entity. For example, the Order Shipped event definition is set to Entity since it is specific to the Orders entity.
- Select Application is the event is relater to a specific application.
- If this event is based on another event, enter that event in the Base Event field. This field links to another record in the Event Definitions service.
- If you specified a Base Event, select a Firing Sequence from the drop-down list.
- Post-Process: This is the default setting. It specifies that this event fires after its associated Base Event.
- Pre-Process: This option specifies that this event fires before its associated Base Event.
- If you set Event Scope to Entity, enter the entity to which this event applies in the Entity field.
- If you set Event Scope to Application, enter the application to which this event applies in the Application field.
- If you specified a Base Event, click the Script tab and enter a script that defines the logic which will trigger this event.
- The script should be in VB.NET script format; the system uses Aptify's Scripting functionality to execute your script. See
...
- Administering Scripts for more information.
- Administering Scripts for more information.
- Save and close the record.