From f6e3e0f2504d2fe15571ff70b73891665f529ca4 Mon Sep 17 00:00:00 2001 From: "m.lettere" Date: Thu, 12 Oct 2023 16:21:59 +0200 Subject: [PATCH] modernize group_add/delete and invitation accepted --- templates/user-group_created.json.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/user-group_created.json.j2 b/templates/user-group_created.json.j2 index fef1938..0df985a 100644 --- a/templates/user-group_created.json.j2 +++ b/templates/user-group_created.json.j2 @@ -99,11 +99,11 @@ "name": "INLINE_TASK", "taskReferenceName": "extract_group", "type": "INLINE", - "evaluatorType" : "javascript", "inputParameters": { "tree" : "${init.output.result.tree}", "groups" : "${look_up_groups.output.body}", - "scriptExpression": "function selectByPath(groups, path, level) { for (var i=0; i < groups.length; i++) {if (groups[i].name === path[level]) {if (level === path.length - 1) return groups[i];return selectByPath(groups[i].subGroups, path, level+1)}} return null; } function f() { return { 'group' : selectByPath($.groups, $.tree, 0)}} f()" + "expression": "function selectByPath(groups, path, level) { for (var i=0; i < groups.length; i++) {if (groups[i].name === path[level]) {if (level === path.length - 1) return groups[i];return selectByPath(groups[i].subGroups, path, level+1)}} return null; } function f() { return { 'group' : selectByPath($.groups, $.tree, 0)}} f()", + "evaluatorType" : "javascript" } }, {