user-group-role_created does not fail now on non-existing client
This commit is contained in:
parent
74d400fa9d
commit
e1fac00cc1
|
@ -4,7 +4,7 @@
|
|||
"createBy" : "Marco Lettere",
|
||||
"description": "Handle workflow related to Portal event user-group-role_created",
|
||||
"version" : 1,
|
||||
"ownerEmail" : "marco.lettere@nubisware.com",
|
||||
"ownerEmail" : "m.lettere@gmail.com",
|
||||
"inputParameters" : ["role", "user", "group"],
|
||||
"tasks" : [
|
||||
{
|
||||
|
@ -68,12 +68,23 @@
|
|||
"inputParameters" : {
|
||||
"url" : "${init.input.keycloak_admin}/clients/${lookup_client.output.body[0].id}/roles",
|
||||
"method" : "GET",
|
||||
"expect" : [200,404],
|
||||
"headers" : {
|
||||
"Authorization" : "Bearer ${authorize.output.body.access_token}",
|
||||
"Accept" : "application/json"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "check_task",
|
||||
"taskReferenceName": "check",
|
||||
"inputParameters": {
|
||||
"prev_status": "${get_client_roles.output.status}"
|
||||
},
|
||||
"type": "DECISION",
|
||||
"caseValueParam": "prev_status",
|
||||
"decisionCases": {
|
||||
"200": [
|
||||
{
|
||||
"name": "LAMBDA_TASK",
|
||||
"taskReferenceName": "select_role",
|
||||
|
@ -100,4 +111,7 @@
|
|||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue