Skip to content

Conversation

simleo
Copy link
Collaborator

@simleo simleo commented Sep 28, 2022

Adds support for nested workflows, or subworkflows. Subworkflows are modeled like the main workflow, except that they don't have File as a type (and thus they are contextual entities):

{
    "@id": "packed.cwl#revsort.cwl",
    "@type": ["SoftwareSourceCode", "ComputationalWorkflow", "HowTo"],
    "hasPart": [
        {"@id": "packed.cwl#revtool.cwl"},
        {"@id": "packed.cwl#sorttool.cwl"}
    ],
    ...
}

This is due to the fact that they correspond to sections in packed.cwl. In the general case, subworkflows could be stored in separate files, in which case they would be represented by data entities that include File among their types (just like the main workflow).

@simleo simleo merged commit eab5f65 into ResearchObject:main Sep 28, 2022
@simleo simleo deleted the subworkflows branch September 28, 2022 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant