Labels activities

This commit is contained in:
Angelo Gallarello 2018-08-16 16:54:29 +02:00
parent 99e7c65907
commit 9c6d374b95
19 changed files with 480 additions and 60 deletions

View file

@ -20,6 +20,9 @@ RulesHelper = {
},
findMatchingRules(activity){
const activityType = activity.activityType;
if(TriggersDef[activityType] == undefined){
return [];
}
const matchingFields = TriggersDef[activityType].matchingFields;
const matchingMap = this.buildMatchingFieldsMap(activity,matchingFields);
let matchingTriggers = Triggers.find(matchingMap);