added one more check to avoid loosing data

This commit is contained in:
Marco Lettere 2023-10-18 15:11:07 +02:00
parent 0181349228
commit 0e2b9ef289
1 changed files with 14 additions and 0 deletions

View File

@ -113,6 +113,20 @@
"expression": "Java.from($.prevpolicies).concat($.newpolicy)" "expression": "Java.from($.prevpolicies).concat($.newpolicy)"
} }
}, },
{
"name": "INLINE_TASK",
"taskReferenceName": "count_check",
"inputParameters": {
"tocount": "${to_policy_array.output.result[*].id}",
"tocompare": "${retrieve_default_permission_policies.output.body}",
"evaluatorType": "javascript",
"expression": "if($.tocount.length < $.tocompare.length) throw 'Unexpected low value'; else $.tocount.length < $.tocompare.length"
},
"type": "INLINE",
"startDelay": 0,
"optional": false,
"asyncComplete": false
},
{ {
"name" : "pyrest", "name" : "pyrest",
"taskReferenceName" : "finalize_permission", "taskReferenceName" : "finalize_permission",