first stub for enable_workspace_clients_for_context
This commit is contained in:
parent
e6ec1c4195
commit
b88c4ac153
|
@ -18,6 +18,7 @@ workflows:
|
||||||
# - 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
|
||||||
keycloak_host: "https://accounts.dev.d4science.org/auth"
|
keycloak_host: "https://accounts.dev.d4science.org/auth"
|
||||||
keycloak: "{{ keycloak_host }}/realms"
|
keycloak: "{{ keycloak_host }}/realms"
|
||||||
keycloak_realm: "d4science"
|
keycloak_realm: "d4science"
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
{
|
||||||
|
"ownerApp" : "Orchestrator",
|
||||||
|
"name" : "enable_workspace_clients_for_context",
|
||||||
|
"createBy" : "Marco Lettere",
|
||||||
|
"description": "All workspace clients registered on Information system for given context are enabled for VRE by calling add_workspace_client_to_context",
|
||||||
|
"version" : 1,
|
||||||
|
"ownerEmail" : "marco.lettere@nubisware.com",
|
||||||
|
"inputParameters" : ["filter", "context"],
|
||||||
|
"tasks" : [
|
||||||
|
{
|
||||||
|
"name": "LAMBDA_TASK",
|
||||||
|
"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(!(f instanceof Array)) else throw('Filter must be empty or Array'); return { encoded_root_vo : encodeURI($.root_vo), filter : filter}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue