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...).
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.
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.
- Enabled:
- An event action can be either activated or not. Deactivated event actions will never run.
- Fail in error:
- When this option is toggled on, any error that appears when running the event action, will cause the action to stop and report an error. If notify option is toggled on, the error will be emailed to the development team.
- Notify on error:
- When this option is toggled on, whenever the event action runs and encounters an error, an email is sent to the development team to inform them of a failure when performing the event action.
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.