Skip to content

Commit 1d2a340

Browse files
author
Peter Amstutz
committed
Merge commit '8d91f4deb539a240d0f27b6d45775a1f5b013058' into inline-expressions
2 parents 6c45b23 + 8d91f4d commit 1d2a340

File tree

2 files changed

+7
-64
lines changed

2 files changed

+7
-64
lines changed

cwltool/schemas/draft-3/cwl-avro.yml

Lines changed: 6 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -728,30 +728,13 @@
728728
- "cwl:JavascriptEngine"
729729

730730

731-
- type: record
731+
- type: enum
732732
name: Expression
733733
docAfter: "#ExpressionTool"
734734
doc: |
735-
Define an expression that will be evaluated and used to modify the behavior
736-
of a tool or workflow. See [Expressions](#expressions) for more
737-
information about expressions
738-
and [ExpressionEngineRequirement](#expressionenginerequirement) for
739-
information on how to define a expression engine.
740-
fields:
741-
- name: engine
742-
type:
743-
- "#StandardExpressionEngine"
744-
- string
745-
doc: |
746-
Either a standard expression engine or a reference to an
747-
ExpressionEngineRequirement defining which engine to use.
748-
jsonldPredicate:
749-
"_id": "cwl:engine"
750-
"_type": "@id"
751-
- name: script
752-
type: string
753-
doc: "The code to be executed by the expression engine."
754-
735+
Not a real type. Indicates that a field must allow expressions.
736+
symbols:
737+
- cwl:ExpressionPlaceholder
755738

756739
- name: Binding
757740
type: record
@@ -1566,7 +1549,7 @@
15661549
"_type": "@vocab"
15671550
type: string
15681551
- name: expression
1569-
type: "#Expression"
1552+
type: [string, "#Expression"]
15701553
doc: |
15711554
The expression to execute. The expression must return a JSON object which
15721555
matches the output parameters of the ExpressionTool.
@@ -2013,14 +1996,13 @@
20131996
interpolatation.
20141997
fields:
20151998
- name: expressionLib
2016-
jsonldPredicate: cwl:expressionLib
20171999
type:
20182000
- "null"
20192001
- type: array
20202002
items: string
20212003
doc: |
20222004
Additional code fragments that will also be inserted
2023-
before executing the expression code. Enables function definitions that may
2005+
before executing the expression code. Allows for function definitions that may
20242006
be called from CWL expressions.
20252007
20262008
@@ -2050,45 +2032,6 @@
20502032
doc: The list of type definitions.
20512033

20522034

2053-
- type: record
2054-
name: ExpressionEngineRequirement
2055-
extends: "#ProcessRequirement"
2056-
doc: |
2057-
Define an expression engine. Deprecated.
2058-
2059-
fields:
2060-
- name: id
2061-
type: string
2062-
doc: "Used to identify the expression engine in the `engine` field of Expressions."
2063-
jsonldPredicate: "@id"
2064-
- name: requirements
2065-
type:
2066-
- "null"
2067-
- type: array
2068-
items: "#ProcessRequirement"
2069-
jsonldPredicate: "cwl:requirements"
2070-
doc: |
2071-
Requirements to run this expression engine, such as DockerRequirement
2072-
for specifying a container to run the engine.
2073-
- name: engineCommand
2074-
type:
2075-
- "null"
2076-
- string
2077-
- type: array
2078-
items: string
2079-
doc: "The command line to invoke the expression engine."
2080-
- name: engineConfig
2081-
jsonldPredicate: cwl:engineConfig
2082-
type:
2083-
- "null"
2084-
- type: array
2085-
items: string
2086-
doc: |
2087-
Additional configuration or code fragments that will also be passed to
2088-
the expression engine. The semantics of this field are defined by the
2089-
underlying expression engine. Intended for uses such as providing
2090-
function definitions that will be called from CWL expressions.
2091-
20922035
- type: record
20932036
name: ShellCommandRequirement
20942037
extends: "#ProcessRequirement"

cwltool/schemas/draft-3/draft-3/wc4-tool.cwl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ outputs:
1212
outputBinding:
1313
glob: output.txt
1414
loadContents: true
15-
outputEval: |
15+
outputEval: |-
1616
${
1717
var s = $self[0].contents.split(/\r?\n/);
1818
return parseInt(s[s.length-2]);

0 commit comments

Comments
 (0)