This commit is contained in:
dcore94 2021-09-13 17:03:22 +02:00
parent e2100d2a6d
commit f2d8bd7f6b
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@
"type": "LAMBDA",
"inputParameters": {
"downloads" : "${workflow.input.descriptor.downloads.*}",
"upload" : "${init.input.stuoragehub}/workspace/items/${workflow.variables.target_folder_id}/create/FILE",
"upload" : "${init.input.storagehub}/workspace/items/${workflow.variables.target_folder_id}/create/FILE",
"auth" : "Bearer ${workflow.input.token}",
"description" : "${workflow.input.descriptor.order_name}",
"scriptExpression": "inputs={};tasks=[];for(var i=0;i<$.downloads.length;i++)download=$.downloads[i],tasks.push({name:'pyrestbridge',type:'SIMPLE',taskReferenceName:'bridge_'+i}),inputs['bridge_'+i]={ datamap : { place: 'files', name : 'file'}, endpoint1 : { url: download.url}, endpoint2 : { url: $.upload, headers: { Authorization : $.auth}, files: { name : 'file' + download.number, description : $.description[0]}} };return {tasks:Java.to(tasks,'java.util.Map[]'),inputs:inputs};"