Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflow run terms for parameter connections #12

Merged
merged 3 commits into from
Oct 18, 2022
Merged

Workflow run terms for parameter connections #12

merged 3 commits into from
Oct 18, 2022

Conversation

simleo
Copy link
Contributor

@simleo simleo commented Sep 29, 2022

See ResearchObject/workflow-run-crate#25.

The idea is to use them like this:

{
    "@id": "packed.cwl",
    "@type": ["File", "SoftwareSourceCode", "ComputationalWorkflow", "HowTo"],
    "hasPart": [
        {"@id": "packed.cwl#revtool.cwl"},
        {"@id": "packed.cwl#sorttool.cwl"}
    ],
    "input": [
        {"@id": "packed.cwl#main/input"},
        {"@id": "packed.cwl#main/reverse_sort"}
    ],
    "output": [
        {"@id": "packed.cwl#main/output"}
    ],
    "connection": [
        {"@id": "#pc-1"},
        ...
    ],
    ...
},
{
    "@id": "packed.cwl#revtool.cwl",
    "@type": "SoftwareApplication",
    "input": [
        {"@id": "packed.cwl#revtool.cwl/input"}
    ],
    "name": "revtool.cwl",
    "output": [
        {"@id": "packed.cwl#revtool.cwl/output"}
    ]
},
{
    "@id": "packed.cwl#main/input",
    "@type": "FormalParameter",
    "additionalType": "File"
},
{
    "@id": "packed.cwl#revtool.cwl/input",
    "@type": "FormalParameter",
    "additionalType": "File"
},
{
    "@id": "#pc-1",
    "@type": "ParameterConnection",
    "sourceParameter": {"@id": "packed.cwl#main/input"},
    "targetParameter": {"@id": "packed.cwl#revtool.cwl/input"}
}

@GlassOfWhiskey
Copy link

What about N-to-1 and 1-to-N connections?
There should be a single ParameterConnection object per pair or the sourceParameter and targetParameter can take list values?

@simleo
Copy link
Contributor Author

simleo commented Oct 13, 2022

What about N-to-1 and 1-to-N connections?
There should be a single ParameterConnection object per pair or the sourceParameter and targetParameter can take list values?

They can take list values

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.

None yet

2 participants