As described previously, each event, condition, action, and data element type has both a view which allows users to modify settings and a library module to act upon those user-defined settings. As the following high-level diagram shows, the extension’s event type view will be shown inside an iframe within the Launch application. The user then uses the view to modify settings which are then saved to Launch’s data storage. When the Launch runtime library is built, both the extension’s event type library module as well as the user-defined settings will be included in the runtime library. At runtime, Launch will inject the user-defined settings into the library module.
In the following diagram you can see the link between events, conditions and actions inside the rule processing flow.
The rule processing flow contains the following phases:
settings and the
trigger method are provided to the event library module at startup.
- When the event library module determines the event has occurred, the event library module calls
- Launch passes
settings into the rule’s condition library modules where conditions are evaluated.
- Each condition library module returns whether a condition evaluates to true.
- If all conditions pass, the rule’s actions are executed.