fixes
This commit is contained in:
parent
e2100d2a6d
commit
f2d8bd7f6b
|
@ -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};"
|
||||
|
|
Loading…
Reference in New Issue