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"],
|
"inputParameters" : ["role", "user", "group"],
|
||||||
"tasks" : [
|
"tasks" : [
|
||||||
{
|
{
|
||||||
"name": "LAMBDA_TASK",
|
"name": "INLINE_TASK",
|
||||||
"taskReferenceName": "init",
|
"taskReferenceName": "init",
|
||||||
"type": "LAMBDA",
|
"type": "INLINE",
|
||||||
"inputParameters": {
|
"inputParameters": {
|
||||||
"keycloak": "{{ keycloak }}/{{ keycloak_realm }}",
|
"keycloak": "{{ keycloak }}/{{ keycloak_realm }}",
|
||||||
"keycloak_admin" : "{{ keycloak_admin }}/{{ 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",
|
"taskReferenceName": "select_user",
|
||||||
"inputParameters": {
|
"inputParameters": {
|
||||||
"foundusers" : "${lookup_user.output.body}",
|
"foundusers" : "${lookup_user.output.body}",
|
||||||
"username" : "${workflow.input.user}",
|
"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[]')}"
|
"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": "LAMBDA"
|
},
|
||||||
|
"type": "INLINE"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "check_user_existance",
|
"name": "check_user_existance",
|
||||||
|
@ -119,13 +121,14 @@
|
||||||
"decisionCases": {
|
"decisionCases": {
|
||||||
"200": [
|
"200": [
|
||||||
{
|
{
|
||||||
"name": "LAMBDA_TASK",
|
"name": "INLINE_TASK",
|
||||||
"taskReferenceName": "select_role",
|
"taskReferenceName": "select_role",
|
||||||
"type": "LAMBDA",
|
"type": "INLINE",
|
||||||
"inputParameters": {
|
"inputParameters": {
|
||||||
"role": "${workflow.input.role}",
|
"role": "${workflow.input.role}",
|
||||||
"roles" : "${get_client_roles.output.body}",
|
"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