Skip to content

post-step output manipulation #39

@tetron

Description

@tetron

Want to be able to reshape outputs on the workflow step, e.g. similar to outputEval on CommandLineTool.

Should include a way to bind outputs from the 'run' process that are not propagated to the step output object, similar to #41

Example to take a output parameter called "tooloutput" which is a record and extract "field1" and produce a workflow step output called "myoutput".

steps:
  step1:
    out:
      myoutput:
        source: tooloutput
        valueFrom: $(self.field1)
      michelsoutput:
        source: foo
        propagate: false
      petersoutput:
        valueFrom: $(outputs.michalesoutput.abc)
      davidsoutput:
        valueFrom: $(outputs.michalesoutput.xzy)
      sashasoutput:
        source: bar
        type: string
        valueFrom: ${return {"quux": self + outputs.michalesoutput.def }; }
      outputwithdefault:
        source: anoptionaloutput
        default: "the default value when this returns null"

Optionally declare expected type on 'out' parameters to suppress checker warnings. #42

The "in", "out" and "loop" should as much as possible have the same fields / order of operations / capabilities. Although, from discussion, we probably don't need multiple sources and linkMerge on 'loop' and 'out'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions