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

post-step output manipulation #39

Open
tetron opened this issue Jul 17, 2024 · 1 comment
Open

post-step output manipulation #39

tetron opened this issue Jul 17, 2024 · 1 comment

Comments

@tetron
Copy link
Member

tetron commented Jul 17, 2024

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'.

@mr-c
Copy link
Member

mr-c commented Jul 17, 2024

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

No branches or pull requests

2 participants