|
728 | 728 | - "cwl:JavascriptEngine"
|
729 | 729 |
|
730 | 730 |
|
731 |
| -- type: record |
| 731 | +- type: enum |
732 | 732 | name: Expression
|
733 | 733 | docAfter: "#ExpressionTool"
|
734 | 734 | 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 |
755 | 738 |
|
756 | 739 | - name: Binding
|
757 | 740 | type: record
|
|
1566 | 1549 | "_type": "@vocab"
|
1567 | 1550 | type: string
|
1568 | 1551 | - name: expression
|
1569 |
| - type: "#Expression" |
| 1552 | + type: [string, "#Expression"] |
1570 | 1553 | doc: |
|
1571 | 1554 | The expression to execute. The expression must return a JSON object which
|
1572 | 1555 | matches the output parameters of the ExpressionTool.
|
|
2013 | 1996 | interpolatation.
|
2014 | 1997 | fields:
|
2015 | 1998 | - name: expressionLib
|
2016 |
| - jsonldPredicate: cwl:expressionLib |
2017 | 1999 | type:
|
2018 | 2000 | - "null"
|
2019 | 2001 | - type: array
|
2020 | 2002 | items: string
|
2021 | 2003 | doc: |
|
2022 | 2004 | 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 |
2024 | 2006 | be called from CWL expressions.
|
2025 | 2007 |
|
2026 | 2008 |
|
|
2050 | 2032 | doc: The list of type definitions.
|
2051 | 2033 |
|
2052 | 2034 |
|
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 |
| -
|
2092 | 2035 | - type: record
|
2093 | 2036 | name: ShellCommandRequirement
|
2094 | 2037 | extends: "#ProcessRequirement"
|
|
0 commit comments