removed unnecessary parameters, make workspace_to_vre more resilient to already member, hooked enable_workspace_clients workflow to group_created

This commit is contained in:
Marco Lettere 2021-11-25 14:51:07 +01:00
parent 7f39fde127
commit a64ea6f2a5
3 changed files with 13 additions and 3 deletions

View File

@ -188,6 +188,7 @@
"inputParameters" : {
"url" : "${init.input.storagehub}/workspace/groups/${shubify_context_name.output.result.shubified_context_name}/users",
"method" : "PUT",
"expect" : [200, 400],
"body" :{
"userId" : "${get_service_account_user.output.body.username}"
},

View File

@ -12,10 +12,8 @@
"taskReferenceName": "init",
"type": "LAMBDA",
"inputParameters": {
"root_vo": "{{ root_vo }}",
"keycloak": "{{ keycloak }}/{{ keycloak_realm }}",
"keycloak_admin" : "{{ keycloak_admin }}/{{ keycloak_realm }}",
"id" : "${workflow.input.client_id}",
"ctx" : "${workflow.input.context}",
"filter" : "${workflow.input.filter}",
"scriptExpression": "function e(v){ return (v == null || (v.trim && v.trim() === ''))} if(e($.ctx)) throw('Context must not be empty'); f=$.filter; if(e(f)) f = []; else if(typeof(f) === 'string') f=[f]; else f=Java.from(f); return { encoded_root_vo : encodeURI($.root_vo), filter : Java.to(f,'java.lang.String[]')}"

View File

@ -487,6 +487,17 @@
"Content-Type" : "application/json"
}
}
}
},
{
"name": "sub_workflow_task",
"taskReferenceName": "call_enable_workspace_clients_for_context",
"inputParameters": {
"subWorkflowParam": {
"name": "add_workspace_client_to_context"
},
"context" : "${workflow.input.group}"
},
"type": "SUB_WORKFLOW"
}
]
}