modernize group_add/delete and invitation accepted
This commit is contained in:
parent
4f6b9698f5
commit
0a54a69bda
|
@ -102,7 +102,7 @@
|
||||||
"inputParameters": {
|
"inputParameters": {
|
||||||
"tree" : "${init.output.result.tree}",
|
"tree" : "${init.output.result.tree}",
|
||||||
"groups" : "${look_up_groups.output.body}",
|
"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; } return { 'group' : selectByPath($.groups, $.tree, 0)}"
|
"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()"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -103,7 +103,7 @@
|
||||||
"tree" : "${init.output.result.tree}",
|
"tree" : "${init.output.result.tree}",
|
||||||
"groups" : "${look_up_groups.output.body}",
|
"groups" : "${look_up_groups.output.body}",
|
||||||
"evaluatorType" : "javascript",
|
"evaluatorType" : "javascript",
|
||||||
"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; } return { 'group' : selectByPath($.groups, $.tree, 0)}"
|
"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()"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue