You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by ta...@apache.org on 2021/03/30 14:44:29 UTC

[unomi] branch master updated: UNOMI-446 update session assigned rule increment action (#272)

This is an automated email from the ASF dual-hosted git repository.

taybou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/unomi.git


The following commit(s) were added to refs/heads/master by this push:
     new d8e611d  UNOMI-446 update session assigned rule increment action (#272)
d8e611d is described below

commit d8e611d3f47eddbe9f74633ceb3bd1b12591c504
Author: MT BENTERKI <be...@gmail.com>
AuthorDate: Tue Mar 30 16:44:03 2021 +0200

    UNOMI-446 update session assigned rule increment action (#272)
---
 .../src/main/resources/META-INF/cxs/rules/sessionAssigned.json    | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/plugins/baseplugin/src/main/resources/META-INF/cxs/rules/sessionAssigned.json b/plugins/baseplugin/src/main/resources/META-INF/cxs/rules/sessionAssigned.json
index 9603b81..53cfef5 100644
--- a/plugins/baseplugin/src/main/resources/META-INF/cxs/rules/sessionAssigned.json
+++ b/plugins/baseplugin/src/main/resources/META-INF/cxs/rules/sessionAssigned.json
@@ -48,12 +48,10 @@
     },
     {
       "parameterValues": {
-        "setPropertyName": "properties.nbOfVisits",
-        "setPropertyValue": "script::profile.properties.?nbOfVisits != null ? (profile.properties.nbOfVisits + 1) : 1",
+        "propertyName": "nbOfVisits",
         "storeInSession": false
       },
-      "type": "setPropertyAction"
+      "type": "incrementPropertyAction"
     }
   ]
-
-}
\ No newline at end of file
+}