From af5d4a79a1d2e2f85f77dbc1b49f469674017795 Mon Sep 17 00:00:00 2001 From: dcore94 Date: Fri, 17 Sep 2021 14:56:58 +0200 Subject: [PATCH] fixing workflow --- templates/da_cache_to_shub.json.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/da_cache_to_shub.json.j2 b/templates/da_cache_to_shub.json.j2 index 8583c47..93f3911 100644 --- a/templates/da_cache_to_shub.json.j2 +++ b/templates/da_cache_to_shub.json.j2 @@ -140,7 +140,7 @@ "upload" : "${init.input.storagehub}/workspace/items/${workflow.variables.target_folder_id}/create/ARCHIVE", "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:'downloads_'+i}),inputs['downloads_'+i]={ fail : false, datamap : { place: 'files', name : 'file'}, endpoint1 : { url: download.url}, endpoint2 : { url: $.upload, headers: { Authorization : $.auth}, files: { parentFolderName : 'download_' + download.number}} };return {tasks:Java.to(tasks,'java.util.Map[]'),inputs:inputs};" + "scriptExpression": "inputs={};tasks=[];for(var i=0;i<$.downloads.length;i++)download=$.downloads[i],tasks.push({name:'pyrestbridge',type:'SIMPLE',taskReferenceName:'downloads_'+(i+1)}),inputs['downloads_'+i]={ fail : false, datamap : { place: 'files', name : 'file'}, endpoint1 : { url: download.url}, endpoint2 : { url: $.upload, headers: { Authorization : $.auth}, files: { parentFolderName : 'download_' + download.number}} };return {tasks:Java.to(tasks,'java.util.Map[]'),inputs:inputs};" } }, { @@ -208,7 +208,7 @@ "inputParameters" : { "from" : "bluecloud@d4science.org", "to" : "${workflow.input.callback.email}", - "html" : "

Dear user,

your request with id {v1} related to order {v2} number {v3} has completed with the following outcome:


{v4}

You can access your data through the D4Science workspace in the folder {v6}

", + "html" : "

Dear user,

your request with id {v1} related to order {v2} number {v3} has completed with the following outcome:


{v4}

You can access your data through the D4Science workspace in the folder {v6}



WARNING / LEGAL TEXT: This message is intended only for the use of the individual or entity to which it is addressed and may contain information which is privileged, confidential, proprietary, or exempt from disclosure under applicable law. If you are not the intended recipient or the person responsible for delivering the message to the intended recipient, you are strictly prohibited from disclosing, distributing, copying, or in any way using this message. If you have received this communication in error, please notify the sender and destroy and delete any copies you may have received.

", "subject" : "Outcome of Bluecloud DA cache download {v1}", "extra_vars":{ "v1" : "${workflow.input.descriptor.request_id}",