diff --git a/templates/role_created.json.j2 b/templates/role_created.json.j2 index 897b467..5168aa6 100644 --- a/templates/role_created.json.j2 +++ b/templates/role_created.json.j2 @@ -5,7 +5,7 @@ "description": "Handle workflow related to Portal event role_created", "version" : 1, "ownerEmail" : "marco.lettere@nubisware.com", - "inputParameters" : ["role"], + "inputParameters" : ["role", "first", "max"], "tasks" : [ { "name": "LAMBDA_TASK", @@ -39,7 +39,7 @@ "taskReferenceName" : "get_all_vres", "type" : "SIMPLE", "inputParameters" : { - "url" : "${init.input.keycloak_admin}/clients?clientId=%252F&search=true&first=0&max=500", + "url" : "${init.input.keycloak_admin}/clients?clientId=%252F&search=true&first=${workflow.input.first}&max=${workflow.input.max}", "method" : "GET", "headers" : { "Authorization" : "Bearer ${authorize.output.body.access_token}",