Skip to content

Infer inputs/outputs #86

Open
Open

Description

@tetron

When writing a workflow with a step has many options that should be exposed as workflow inputs, it is currently necessary to copy all the parameters to the outer workflow. This is verbose and creates a maintenance problem. I propose a requirement type that instructs the implementation to lift unconnected input and output parameters to the parent workflow.

Activity

  1. tetron commented on Sep 17, 2015

    @tetron
    MemberAuthor

    Perhaps the solution is to support cross-referencing to other parameters? In this example, the workflow input would explicitly take the type and default value from the step tool (using draft-3 scoped identifiers):

    - class: CommandLineTool
      id: example-tool
      inputs:
        - id: count
          type: int
          default: 5
    ...
    
    - class: Workflow
      id: example-wf
      inputs:
        - { id: count, type: "#example-tool/count"}
    
      steps:
        - run: "#example-tool"
          inputs: [{id: count, source: "#example-wf/count"}]
    ...
  2. tetron commented on Sep 18, 2015

    @tetron
    MemberAuthor

    This also relates to #124, permitting types to reference other type definitions references also allows for more flexible declaration than SchemaDefs.

  3. ghost added this to the milestone on Apr 17, 2016
  4. modified the milestones: unscheduled, on Jun 14, 2016
  5. mr-c commented on Oct 11, 2016

    @mr-c
    Member

    The simpler method is that all step inputs not wired to a workflow input or a step output are promoted and wired to a same-named workflow input unless there is a name conflict.

    In the case of a name conflict then the writer can manually add the workflow input or use expose: unique_name as above.

  6. modified the milestones: , unscheduled on Oct 11, 2016
  7. added a commit that references this issue on Jul 20, 2017
  8. added a commit that references this issue on Mar 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions