Skip to content

Commit c944f62

Browse files
MarkRobboMark Robinson
authored andcommitted
Fix for disconnected inputs where # notation is used
1 parent 9bd5e3b commit c944f62

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/org/commonwl/view/cwl/CWLService.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ private Map<String, CWLElement> getStepInputsOutputs(JsonNode inOut) {
352352
List<String> sources = extractSource(inOutNode);
353353
if (sources.size() > 0) {
354354
for (String source : sources) {
355-
inputOutput.addSourceID(source);
355+
inputOutput.addSourceID(stepIDFromSource(source));
356356
}
357357
} else {
358358
inputOutput.setDefaultVal(extractDefault(inOutNode));
@@ -399,6 +399,9 @@ private Map<String, CWLElement> getInputsOutputs(JsonNode inputsOutputs) {
399399
// Explicit ID and other fields within each list
400400
for (JsonNode inputOutput : inputsOutputs) {
401401
String id = inputOutput.get(ID).asText();
402+
if (id.charAt(0) == '#') {
403+
id = id.substring(1);
404+
}
402405
returnMap.put(id, getDetails(inputOutput));
403406
}
404407
} else if (inputsOutputs.getClass() == ObjectNode.class) {

0 commit comments

Comments
 (0)