Linking the Validation Process Flow to an Entity
Event Handlers are used to link process flows to entities or applications. In this case, since the process flow is executing validation logic for the Employees entity, we need to create an Event Handler for the Employees entity using either the BeforeValidate or AfterValidate event definition. For BeforeValidate, the system will run the process flow before executing the standard Generic Entity (GE) validation. For AfterValidate, the system will run the process flow after executing the standard GE validation. We can link the event handler to either event but for the sake of this example, we will link it to the AfterValidate event (so it occurs after the standard validation).
Perform the following steps to set up the event handler:
- Select the Process Pipeline Administration application to load its dashboard.
- In the Event Handler Management area, select Entities as the Event Scope.
- Enter Employees in the Entity field. Upon tabbing out of the field, the grid below displays with a list of all other Event Handlers attached to the Employees entity, if any.
- Click Add Event. The Event Handler form now displays.
- In the Event field, enter AfterValidate.
- In the Process Flow field, enter the XY Validate Organization process flow.
- Once the Process Flow field is filled, the Input Map tab populates with the input property defined on the process flow selected.
- Once the Process Flow field is filled, the Input Map tab populates with the input property defined on the process flow selected.
- For the GEObject input property, select GE Object as the Source Type. GEObject will then automatically populate in the Source field.
- Click OK to save the record.
- Close the Aptify application and restart before continuing.
Copyright © 2014-2017 Aptify - Confidential and Proprietary