moved from decision to switch for compatibility with new conductor
This commit is contained in:
parent
2cf8a62be4
commit
b6b49d4500
|
@ -1,35 +1,35 @@
|
||||||
---
|
---
|
||||||
workflows:
|
workflows:
|
||||||
- create-user-add-to-vre
|
# - create-user-add-to-vre
|
||||||
- group_deleted
|
# - group_deleted
|
||||||
- user-group_created
|
# - user-group_created
|
||||||
- user-group-role_created
|
- user-group-role_created
|
||||||
- group_created
|
# - group_created
|
||||||
- invitation-accepted
|
# - invitation-accepted
|
||||||
- user-group_deleted
|
# - user-group_deleted
|
||||||
- user-group-role_deleted
|
# - user-group-role_deleted
|
||||||
- delete-user-account
|
# - delete-user-account
|
||||||
- role_deleted
|
# - role_deleted
|
||||||
- role_created
|
# - role_created
|
||||||
- add_role_policy_permission
|
# - add_role_policy_permission
|
||||||
- add_all_member_roles
|
# - add_all_member_roles
|
||||||
- create_system_service
|
# - create_system_service
|
||||||
- delete_system_service
|
# - delete_system_service
|
||||||
- add_all_system_services_to_vre
|
# - add_all_system_services_to_vre
|
||||||
- create_workspace_client
|
# - create_workspace_client
|
||||||
- add_workspace_client_to_context
|
# - add_workspace_client_to_context
|
||||||
- enable_workspace_clients_for_context
|
# - enable_workspace_clients_for_context
|
||||||
- add_workspace_client_to_contexts
|
# - add_workspace_client_to_contexts
|
||||||
- ghn_client_add_to_context
|
# - ghn_client_add_to_context
|
||||||
- ghn_client_add_to_contexts
|
# - ghn_client_add_to_contexts
|
||||||
- ghn_client_create
|
# - ghn_client_create
|
||||||
- ghn_client_delete
|
# - ghn_client_delete
|
||||||
- ghn_client_remove_from_contexts
|
# - ghn_client_remove_from_contexts
|
||||||
- ghn_client_remove_from_context
|
# - ghn_client_remove_from_context
|
||||||
- jupyterhub_add_serveroptions_to_context
|
# - jupyterhub_add_serveroptions_to_context
|
||||||
- record_context_to_is
|
# - record_context_to_is
|
||||||
- create_vre_folder_for_context
|
# - create_vre_folder_for_context
|
||||||
- create_vre
|
# - create_vre
|
||||||
|
|
||||||
keycloak_host: "https://accounts.dev.d4science.org/auth"
|
keycloak_host: "https://accounts.dev.d4science.org/auth"
|
||||||
keycloak: "{{ keycloak_host }}/realms"
|
keycloak: "{{ keycloak_host }}/realms"
|
||||||
|
|
|
@ -48,36 +48,37 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "LAMBDA_TASK",
|
"name": "LAMBDA_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[]')}"
|
"scriptExpression": "for(var i=0; i < $.foundusers.length;i++){if($.foundusers[i]['username'] == $.username) return Java.to([$.foundusers[i]], 'java.lang.Object[]')}"
|
||||||
},
|
},
|
||||||
"type": "LAMBDA"
|
"type": "LAMBDA"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "check_user_existance",
|
"name": "check_user_existance",
|
||||||
"taskReferenceName": "check_user_existance",
|
"taskReferenceName": "check_user_existance",
|
||||||
"inputParameters": {
|
"inputParameters": {
|
||||||
"user": "${select_user.output.result[0]}"
|
"user": "${select_user.output.result[0]}"
|
||||||
},
|
},
|
||||||
"type": "DECISION",
|
"type": "SWITCH",
|
||||||
"caseExpression": "($.user == null ? 'true' : 'false')",
|
"evaluatorType": "javascript",
|
||||||
"decisionCases": {
|
"caseExpression": "($.user == null ? 'true' : 'false')",
|
||||||
"true": [
|
"decisionCases": {
|
||||||
{
|
"true": [
|
||||||
"name" : "terminate",
|
{
|
||||||
"taskReferenceName" : "terminate_when_no_user",
|
"name" : "terminate",
|
||||||
"type" : "TERMINATE",
|
"taskReferenceName" : "terminate_when_no_user",
|
||||||
"inputParameters" : {
|
"type" : "TERMINATE",
|
||||||
"terminationStatus" : "COMPLETED"
|
"inputParameters" : {
|
||||||
}
|
"terminationStatus" : "COMPLETED"
|
||||||
}
|
}
|
||||||
]
|
}
|
||||||
}
|
]
|
||||||
},
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name" : "pyrest",
|
"name" : "pyrest",
|
||||||
"taskReferenceName" : "lookup_client",
|
"taskReferenceName" : "lookup_client",
|
||||||
|
@ -112,7 +113,8 @@
|
||||||
"inputParameters": {
|
"inputParameters": {
|
||||||
"prev_status": "${get_client_roles.output.status}"
|
"prev_status": "${get_client_roles.output.status}"
|
||||||
},
|
},
|
||||||
"type": "DECISION",
|
"type": "SWITCH",
|
||||||
|
"evaluatorType": "value-param",
|
||||||
"caseValueParam": "prev_status",
|
"caseValueParam": "prev_status",
|
||||||
"decisionCases": {
|
"decisionCases": {
|
||||||
"200": [
|
"200": [
|
||||||
|
|
Loading…
Reference in New Issue