Merge branch haouech:cwlparser (#38) into cwlparser Contributed by Majdi Haouech @haouech (ASF ICLA on file)
Add structural import for a CWL workflow to Apache Taverna. The current code parses the cwl file to extract inputs, outputs and steps of a workflow, and then converts them to a Taverna workflow containing ports, processors and data links. This closes #38 Project: http://git-wip-us.apache.org/repos/asf/incubator-taverna-language/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-taverna-language/commit/48f7dd9f Tree: http://git-wip-us.apache.org/repos/asf/incubator-taverna-language/tree/48f7dd9f Diff: http://git-wip-us.apache.org/repos/asf/incubator-taverna-language/diff/48f7dd9f Branch: refs/heads/cwlparser Commit: 48f7dd9f7040c5b3b571af0b675992d556b66ef0 Parents: e5547ef d39a8a2 Author: Stian Soiland-Reyes <[email protected]> Authored: Thu Jul 5 11:44:01 2018 +0100 Committer: Stian Soiland-Reyes <[email protected]> Committed: Thu Jul 5 11:44:01 2018 +0100 ---------------------------------------------------------------------- taverna-scufl2-cwl/pom.xml | 57 +++ .../apache/taverna/scufl2/cwl/CWLParser.java | 83 ++++ .../apache/taverna/scufl2/cwl/Converter.java | 76 +++ .../taverna/scufl2/cwl/WorkflowParser.java | 236 +++++++++ .../apache/taverna/scufl2/cwl/YAMLHelper.java | 484 +++++++++++++++++++ .../scufl2/cwl/components/PortDetail.java | 72 +++ .../taverna/scufl2/cwl/components/Step.java | 85 ++++ .../scufl2/cwl/components/StepInput.java | 54 +++ .../scufl2/cwl/components/StepOutput.java | 41 ++ .../apache/taverna/scufl2/cwl/TestParser.java | 120 +++++ .../src/test/resources/1st-tool.cwl | 26 + .../src/test/resources/hello_world.cwl | 36 ++ .../src/test/resources/int_input.cwl | 22 + .../src/test/resources/simple_string_input.cwl | 21 + .../src/test/resources/worklflow2.cwl | 44 ++ 15 files changed, 1457 insertions(+) ----------------------------------------------------------------------
