Checking event logs

Once the business rule is created, we can confirm whether our code is working fine by creating an entry in the Booking Request table and updating the record while changing the Assigned to field. If everything goes well, we will be able to see the event in the events log module (System Logs | Events), as shown in the following screenshot:

Once we are sure that events are being triggered properly, let us now create handlers for these events. The handlers could be either a script action that can execute server-side scripts or a notification.

For the purpose of this book, we are going to first create a script action that will increment the value of the reassignment count field, which is inherited from the task table. Next, we will create a notification that will be sent based on the similar condition we selected in our business rule.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.14.6.194