call to add_ws_client subworkflow fix

This commit is contained in:
Marco Lettere 2021-11-25 13:22:45 +01:00
parent a11bf6a057
commit 9a86ba6ee4
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@
"inputParameters": {
"context" : "${workflow.input.context}",
"names" : "${filtered_workspace_client_names.output.result}",
"scriptExpression": "inputs={},tasks=[];for(var i=0;i<$.names.length;i++),tasks.push({name:'sub_workflow_task',type:'SUB_WORKFLOW',taskReferenceName:'call_add_ws_client_to_context_'+i, subWorkflowParam:{ name:'add_workspace_client_to_context'}}),inputs['call_add_ws_client_to_context_'+i]={client_id:$.names[i], context:$.context};return {tasks:Java.to(tasks,'java.util.Map[]'),inputs:inputs};"
"scriptExpression": "inputs={};tasks=[];for(var i=0;i<$.names.length;i++){tasks.push({name:'sub_workflow_task',type:'SUB_WORKFLOW',taskReferenceName:'call_add_ws_client_to_context_'+i, subWorkflowParam:{ name:'add_workspace_client_to_context'}});inputs['call_add_ws_client_to_context_'+i]={client_id:$.names[i], context:$.context}} return {tasks:Java.to(tasks,'java.util.Map[]'),inputs:inputs};"
}
},
{