We are creating a system in Ruby on Rails, and we want to be able to offer our users a little control over the notifications and actions that may take place when a certain predefined trigger occurs. In addition, we plan to iterate through the imported data and allowing our users to customize some actions and triggers based on this data.
Let me give you some examples to clarify better:
Trigger - Action
------------------------------------------------------------------------
New Ticket is Created - User receives an e-mail
New Ticket Parsed for Keyword 'evil' - Ticket gets auto-assigned to a
particular group
User Missed 3 Meetings - A ticket is automatically created
Ideally, we would like to set up some triggers. For example, the last example may allow you to configure how many meetings were skipped before the action was completed.
I was wondering which templates could help me in this case / callback in Ruby on Rails. In addition, triggers and actions can be customized, but they will be predefined; therefore, should they be hardcoded or stored in a database?
Any thoughts would be greatly appreciated. Thank!
Update 1: . Looking at it, I noticed that the icon system on SO is somewhat similar, based on these criteria I want to do this. This is a little different, but I want to be able to easily add new criteria and actions and present them to users. Any thoughts on this?
source
share