early termination when no user found
This commit is contained in:
parent
67435074ad
commit
a4807d24e8
|
@ -2,9 +2,9 @@
|
|||
workflows:
|
||||
# - create-user-add-to-vre
|
||||
# - group_deleted
|
||||
# - user-group_created
|
||||
- user-group_created
|
||||
# - user-group-role_created
|
||||
- group_created
|
||||
# - group_created
|
||||
# - invitation-accepted
|
||||
# - user-group_deleted
|
||||
# - user-group-role_deleted
|
||||
|
|
|
@ -60,6 +60,27 @@
|
|||
"type": "LAMBDA"
|
||||
},
|
||||
{
|
||||
"name": "check_user_existance",
|
||||
"taskReferenceName": "check_user_existance",
|
||||
"inputParameters": {
|
||||
"user": "${select_user.output.result[0]}"
|
||||
},
|
||||
"type": "DECISION",
|
||||
"caseExpression": "($.user == null ? 'true' : 'false')",
|
||||
"decisionCases": {
|
||||
"true": [
|
||||
{
|
||||
"name" : "terminate",
|
||||
"taskReferenceName" : "terminate_when_no_user",
|
||||
"type" : "TERMINATE",
|
||||
"inputParameters" : {
|
||||
"terminationStatus" : "COMPLETED"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name" : "pyrest",
|
||||
"taskReferenceName" : "look_up_groups",
|
||||
"type" : "SIMPLE",
|
||||
|
|
Loading…
Reference in New Issue