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: 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"

View File

@ -63,7 +63,8 @@
"inputParameters": { "inputParameters": {
"user": "${select_user.output.result[0]}" "user": "${select_user.output.result[0]}"
}, },
"type": "DECISION", "type": "SWITCH",
"evaluatorType": "javascript",
"caseExpression": "($.user == null ? 'true' : 'false')", "caseExpression": "($.user == null ? 'true' : 'false')",
"decisionCases": { "decisionCases": {
"true": [ "true": [
@ -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": [