Event actions

Overview

Event actions are tasks, automatically performed by the system, when a set of defined conditions is met or a certain action is performed (updating a product's information, changing an order's status...).

image.png

Event actions are used for a variety of automated tasks, such as sending email notifications,  updating statuses, performing hook calls...

Event actions are added/edited by ERP administrators.

Create new event action

This action requires the "create event action" permission.

To add a new event action, navigate to the "Add new action" form, by pressing the "+" button in the top right corner above the table.

Event actions should (at current time) only be added by administrators with access to the code base, as a class names with full path are mandatory when creating a new event action and that information is only available to developers.

image.png

On the form, once all a name, full class names and required arguments have been entered, the three top switches should be toggled on/off.

Update existing event action

Existing event actions should currently never be updated by anyone else but the developers. When a need arises for a different functionality, a new event action should be created, deactivating the old one.

Delete event action

Existing event action should never be deleted, instead being deactivated.