|
|
|
@ -5,7 +5,7 @@
|
|
|
|
|
"description": "Create a confidential client for software procedures that need to be members of each VO and VRE",
|
|
|
|
|
"version" : 1,
|
|
|
|
|
"ownerEmail" : "marco.lettere@nubisware.com",
|
|
|
|
|
"inputParameters" : ["client_id", "first", "max"],
|
|
|
|
|
"inputParameters" : ["client_id"],
|
|
|
|
|
"tasks" : [
|
|
|
|
|
{
|
|
|
|
|
"name": "LAMBDA_TASK",
|
|
|
|
@ -74,7 +74,7 @@
|
|
|
|
|
"taskReferenceName" : "get_all_contexts",
|
|
|
|
|
"type" : "SIMPLE",
|
|
|
|
|
"inputParameters" : {
|
|
|
|
|
"url" : "${init.input.keycloak_admin}/clients?clientId=%252F&search=true&first=${workflow.input.first}&max=${workflow.input.max}",
|
|
|
|
|
"url" : "${init.input.keycloak_admin}/clients?clientId=%252F&search=true",
|
|
|
|
|
"method" : "GET",
|
|
|
|
|
"headers" : {
|
|
|
|
|
"Authorization" : "Bearer ${authorize.output.body.access_token}",
|
|
|
|
@ -87,7 +87,7 @@
|
|
|
|
|
"taskReferenceName": "build_member_roles_assignment_tasks",
|
|
|
|
|
"type": "LAMBDA",
|
|
|
|
|
"inputParameters": {
|
|
|
|
|
"contexts" : "${get_all_contexts.body}",
|
|
|
|
|
"contexts" : "${get_all_contexts.output.body}",
|
|
|
|
|
"id" : "${extract_client_id.output.result.client_id}",
|
|
|
|
|
"scriptExpression": "inputs={},tasks=[];for(var i=0;i<$.contexts.length;i++)c=$.contexts[i],tasks.push({name:'sub_workflow_task',type:'SUB_WORKFLOW',taskReferenceName:'call_add_all_member_roles_'+i, subWorkflowParam:{ name:'add_all_member_roles'}}),inputs['add_all_member_roles_'+i]={context:c, client:$.id};return {tasks:Java.to(tasks,'java.util.Map[]'),inputs:inputs};"
|
|
|
|
|
}
|
|
|
|
|