From 9b58ba9889a6a5cb88b02b61ea08bc9768031f06 Mon Sep 17 00:00:00 2001 From: Tommy Ellqvist Date: Tue, 30 Jun 2015 17:50:34 +0200 Subject: [PATCH] Fixed OPM export for workflows using Controlflow Assistant OPM assumes some Map inputs are functions, but CF uses connections. In this case we cannot compute the provenance for the Map. --- vistrails/db/services/opm.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vistrails/db/services/opm.py b/vistrails/db/services/opm.py index ae6a0516e..837964b30 100644 --- a/vistrails/db/services/opm.py +++ b/vistrails/db/services/opm.py @@ -271,6 +271,10 @@ def process_map(module, found_input_ports, found_output_ports): # need to have process that extracts artifacts for each iteration input_list_artifact = found_input_ports['InputList'] result_artifact = found_output_ports.get('Result', None) + # if InputPort or OutputPort is a Connection we cannot do anything + if (found_input_ports['InputPort'].vtType == DBConnection.vtType or + found_input_ports['OutputPort'].vtType == DBConnection.vtType): + return input_port_list = \ literal_eval(found_input_ports['InputPort'].db_parameters[0].db_val) output_port = \