From b4489912fd88d2e19a9130c76a8928f8b0427c57 Mon Sep 17 00:00:00 2001 From: "m.lettere" Date: Fri, 4 Jun 2021 09:45:44 +0200 Subject: [PATCH] fixes --- templates/create_system_service.json.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/create_system_service.json.j2 b/templates/create_system_service.json.j2 index 6e5f9b7..d867b5a 100644 --- a/templates/create_system_service.json.j2 +++ b/templates/create_system_service.json.j2 @@ -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};" }