moved from decision to switch for compatibility with new conductor
This commit is contained in:
parent
0f593d5b8d
commit
20025bad84
|
@ -8,13 +8,14 @@
|
|||
"inputParameters" : ["role", "user", "group"],
|
||||
"tasks" : [
|
||||
{
|
||||
"name": "LAMBDA_TASK",
|
||||
"name": "INLINE_TASK",
|
||||
"taskReferenceName": "init",
|
||||
"type": "LAMBDA",
|
||||
"type": "INLINE",
|
||||
"inputParameters": {
|
||||
"keycloak": "{{ keycloak }}/{{ keycloak_realm }}",
|
||||
"keycloak_admin" : "{{ keycloak_admin }}/{{ keycloak_realm }}",
|
||||
"scriptExpression": "1"
|
||||
"expression": "1",
|
||||
"evaluatorType" : "javascript"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -48,14 +49,15 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"name": "LAMBDA_TASK",
|
||||
"name": "INLINE_TASK",
|
||||
"taskReferenceName": "select_user",
|
||||
"inputParameters": {
|
||||
"foundusers" : "${lookup_user.output.body}",
|
||||
"username" : "${workflow.input.user}",
|
||||
"scriptExpression": "for(var i=0; i < $.foundusers.length;i++){if($.foundusers[i]['username'] == $.username) return Java.to([$.foundusers[i]], 'java.lang.Object[]')}"
|
||||
},
|
||||
"type": "LAMBDA"
|
||||
"foundusers" : "${lookup_user.output.body}",
|
||||
"username" : "${workflow.input.user}",
|
||||
"expression": "for(var i=0; i < $.foundusers.length;i++){if($.foundusers[i]['username'] == $.username) return Java.to([$.foundusers[i]], 'java.lang.Object[]')}",
|
||||
"evaluatorType" : "javascript"
|
||||
},
|
||||
"type": "INLINE"
|
||||
},
|
||||
{
|
||||
"name": "check_user_existance",
|
||||
|
@ -119,13 +121,14 @@
|
|||
"decisionCases": {
|
||||
"200": [
|
||||
{
|
||||
"name": "LAMBDA_TASK",
|
||||
"name": "INLINE_TASK",
|
||||
"taskReferenceName": "select_role",
|
||||
"type": "LAMBDA",
|
||||
"type": "INLINE",
|
||||
"inputParameters": {
|
||||
"role": "${workflow.input.role}",
|
||||
"roles" : "${get_client_roles.output.body}",
|
||||
"scriptExpression": "for(var i=0; i < $.roles.length;i++){if($.roles[i]['name'] == $.role) return Java.to([$.roles[i]], 'java.lang.Object[]')}"
|
||||
"expression": "for(var i=0; i < $.roles.length;i++){if($.roles[i]['name'] == $.role) return Java.to([$.roles[i]], 'java.lang.Object[]')}",
|
||||
"evaluatorType" : "javascript"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue