moved from decision to switch for compatibility with new conductor

This commit is contained in:
Marco Lettere 2023-10-12 12:44:51 +02:00
parent 2cf8a62be4
commit b6b49d4500
2 changed files with 60 additions and 58 deletions

View File

@ -1,35 +1,35 @@
---
workflows:
- create-user-add-to-vre
- group_deleted
- user-group_created
# - create-user-add-to-vre
# - group_deleted
# - user-group_created
- user-group-role_created
- group_created
- invitation-accepted
- user-group_deleted
- user-group-role_deleted
- delete-user-account
- role_deleted
- role_created
- add_role_policy_permission
- add_all_member_roles
- create_system_service
- delete_system_service
- add_all_system_services_to_vre
- create_workspace_client
- add_workspace_client_to_context
- enable_workspace_clients_for_context
- add_workspace_client_to_contexts
- ghn_client_add_to_context
- ghn_client_add_to_contexts
- ghn_client_create
- ghn_client_delete
- ghn_client_remove_from_contexts
- ghn_client_remove_from_context
- jupyterhub_add_serveroptions_to_context
- record_context_to_is
- create_vre_folder_for_context
- create_vre
# - group_created
# - invitation-accepted
# - user-group_deleted
# - user-group-role_deleted
# - delete-user-account
# - role_deleted
# - role_created
# - add_role_policy_permission
# - add_all_member_roles
# - create_system_service
# - delete_system_service
# - add_all_system_services_to_vre
# - create_workspace_client
# - add_workspace_client_to_context
# - enable_workspace_clients_for_context
# - add_workspace_client_to_contexts
# - ghn_client_add_to_context
# - ghn_client_add_to_contexts
# - ghn_client_create
# - ghn_client_delete
# - ghn_client_remove_from_contexts
# - ghn_client_remove_from_context
# - jupyterhub_add_serveroptions_to_context
# - record_context_to_is
# - create_vre_folder_for_context
# - create_vre
keycloak_host: "https://accounts.dev.d4science.org/auth"
keycloak: "{{ keycloak_host }}/realms"

View File

@ -63,7 +63,8 @@
"inputParameters": {
"user": "${select_user.output.result[0]}"
},
"type": "DECISION",
"type": "SWITCH",
"evaluatorType": "javascript",
"caseExpression": "($.user == null ? 'true' : 'false')",
"decisionCases": {
"true": [
@ -112,7 +113,8 @@
"inputParameters": {
"prev_status": "${get_client_roles.output.status}"
},
"type": "DECISION",
"type": "SWITCH",
"evaluatorType": "value-param",
"caseValueParam": "prev_status",
"decisionCases": {
"200": [