3
0

Add eventbus pkg

This commit is contained in:
Denis Arh
2019-12-25 11:41:25 +01:00
parent f109f722f9
commit 7491936742

View File

@@ -14,6 +14,17 @@ Resource types are identifiers of internal resources, like user, role, request,
Type describes direct or indirect user action or some other event in the system.
#### Deferred events
Deferred events (onTimestamp and onInterval) are executed by scheduler package service.
#### Manual events
Manual events (onManual) are a special case.
Events are not (nor should be) triggered directly or through eventbus.
We use it to route requests and pack attributes from the API to the Corredor service
### Event matcher
Matcher is a function on event that helps filtering fired events.
@@ -33,6 +44,7 @@ Constraint checker procedure will call matcher for each constraint.
All constraints must match.
First non-match will break constraint checking procedure.
## Triggers
Trigger is combination of (event matching) rules/constraints and event handler.