File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
main/java/org/commonwl/view/graphviz Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -193,6 +193,16 @@ private void writeSteps(Workflow workflow) throws IOException {
193
193
}
194
194
}
195
195
}
196
+
197
+ // Workaround to force outputs to lowest ranking, see #104
198
+ writeLine ("" );
199
+ writeLine (" // Invisible links to force outputs to be at lowest rank" );
200
+ for (Map .Entry <String , CWLStep > step : workflow .getSteps ().entrySet ()) {
201
+ writeLine (" \" " + step .getKey () + "\" -> \" " +
202
+ workflow .getOutputs ().keySet ().iterator ().next () +
203
+ "\" [style=invis];" );
204
+ }
205
+
196
206
}
197
207
198
208
/**
Original file line number Diff line number Diff line change @@ -49,4 +49,9 @@ digraph workflow {
49
49
" input2" -> " step1" ;
50
50
" default1" [label =" examplefile.jar" , fillcolor =" #D5AEFC" ]
51
51
" default1" -> " step1" ;
52
+
53
+ // Invisible links to force outputs to be at lowest rank
54
+ " default1" -> " output" [style =invis];
55
+ " step2" -> " output" [style =invis];
56
+ " step1" -> " output" [style =invis];
52
57
}
You can’t perform that action at this time.
0 commit comments