Posts [ 2 ]

Topic: Triggers, automations, macros, events

I have huge issue. To be short, question is: How to build automation (or triggers) for my application, save them to database and call when condition is true.

Longer:

Tickets system have that feature.

Customer opens new ticket, system (after_create, update) probably calls trigger model and do some actions based on conditions. How to prepare tables, saving conditions and actions etc? Biggest question is how to compare what happened with model (action, attributes) so I can run actions based on changes.