Skip to content

document in user guide that multiple parameter references and string concatenation are possible without InlineJavascript #389

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

Open
mr-c opened this issue Feb 25, 2017 · 1 comment
Milestone

Comments

@mr-c
Copy link
Member

mr-c commented Feb 25, 2017

Inspired by https://www.biostars.org/p/234804/#238901

Implementers, does the following seem reasonable?
Note the lack of InlineJavascriptRequirement

cwlVersion: v1.0
class: Workflow
requirements:
   ScatterFeatureRequirement: {}
   StepInputExpressionRequirement: {}
inputs:
   bam: File
   intervals: string[]
outputs: []
steps:
  hc:
    run: dummy_HC.cwl
    scatter: [interval_string]
    in:
      inputBam: bam
      interval_string: intervals
      outputVcf:
        valueFrom: $(inputs.inputBam.nameroot).$(inputs.interval_string).vcf
@mr-c mr-c changed the title allow multiple parameter references and string concatenation w/o JS engine document in user guide that multiple parameter references and string concatenation are possible without InlineJavascript Mar 23, 2017
@mr-c
Copy link
Member Author

mr-c commented Mar 23, 2017

@tetron pointed out that this is already allowed:

http://www.commonwl.org/v1.0/CommandLineTool.html#Parameter_references "Multiple parameter references may appear in a single field. This case must be treated as a string interpolation. After interpolating the first parameter reference, interpolation must be recursively applied to the trailing characters to yield the final string value."

Tested at https://github.com/common-workflow-language/common-workflow-language/blob/master/v1.0/v1.0/params_inc.yml#L72

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

1 participant