nlevitsky commented on a change in pull request #160:
URL: https://github.com/apache/unomi/pull/160#discussion_r427193477
##########
File path:
plugins/baseplugin/src/main/java/org/apache/unomi/plugins/baseplugin/actions/SetEventOccurenceCountAction.java
##########
@@ -80,7 +86,16 @@ public int execute(Action action, Event event) {
pastEvents = new LinkedHashMap<>();
event.getProfile().getSystemProperties().put("pastEvents",
pastEvents);
}
- pastEvents.put((String)
pastEventCondition.getParameter("generatedPropertyKey"), count + 1);
+
+ //increase the counter by 1 if the current event fulfils the time
condition
Review comment:
Added integration tests
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]