-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #649 from crim-ca/cwl-workflow-steps
- Loading branch information
Showing
35 changed files
with
1,292 additions
and
366 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
tests/functional/application-packages/PassthroughExpressions/deploy.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
processDescription: | ||
process: | ||
id: PassthroughExpressions | ||
executionUnit: | ||
# note: This does not work by itself! The test suite injects the file dynamically. | ||
- test: "tests/functional/application-packages/PassthroughExpressions/package.cwl" | ||
deploymentProfileName: "http://www.opengis.net/profiles/eoc/dockerizedApplication" |
3 changes: 3 additions & 0 deletions
3
tests/functional/application-packages/PassthroughExpressions/execute.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
inputs: | ||
message: msg | ||
code: 123456 |
34 changes: 34 additions & 0 deletions
34
tests/functional/application-packages/PassthroughExpressions/package.cwl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
cwlVersion: v1.2 | ||
class: CommandLineTool | ||
baseCommand: "true" | ||
requirements: | ||
- class: InlineJavascriptRequirement | ||
- class: DockerRequirement | ||
dockerPull: docker.io/debian:stable-slim | ||
inputs: | ||
message: | ||
type: string | ||
code: | ||
type: int | ||
autogen: | ||
type: float | ||
default: 3.1416 | ||
inputBinding: | ||
valueFrom: ${ return self; } | ||
outputs: | ||
message: | ||
type: string | ||
outputBinding: | ||
outputEval: ${ return inputs.message } | ||
code: | ||
type: int | ||
outputBinding: | ||
outputEval: $(inputs.code) | ||
number: | ||
type: float | ||
outputBinding: | ||
outputEval: $(inputs.autogen) | ||
integer: | ||
type: int | ||
outputBinding: | ||
outputEval: ${ return parseInt(inputs.autogen) } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# WARNING: | ||
# This is a pseudo-definition only to avoid unnecessary requests to external definitions for this application. | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ outputs: | |
glob: "stdout.log" | ||
loadContents: true | ||
outputEval: $(self[0].contents) | ||
stdout: stdout.log |
5 changes: 5 additions & 0 deletions
5
tests/functional/application-packages/WorkflowDirectoryListing/execute.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# WARNING: | ||
# This is a pseudo-definition only to avoid unnecessary requests to external definitions for this Workflow. | ||
# The actual execution body is overridden by the test itself. | ||
# See: 'tests.functional.test_workflow.WorkflowTestCase.test_workflow_directory_input_output_chaining' | ||
{} |
7 changes: 7 additions & 0 deletions
7
tests/functional/application-packages/WorkflowPassthroughExpressions/deploy.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
processDescription: | ||
process: | ||
id: WorkflowPassthroughExpressions | ||
executionUnit: | ||
# note: This does not work by itself! The test suite injects the file dynamically. | ||
- test: "tests/functional/application-packages/WorkflowPassthroughExpressions/package.cwl" | ||
deploymentProfileName: "http://www.opengis.net/profiles/eoc/workflow" |
3 changes: 3 additions & 0 deletions
3
tests/functional/application-packages/WorkflowPassthroughExpressions/execute.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
inputs: | ||
message: msg | ||
code: 123456 |
58 changes: 58 additions & 0 deletions
58
tests/functional/application-packages/WorkflowPassthroughExpressions/package.cwl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
cwlVersion: v1.2 | ||
class: Workflow | ||
requirements: | ||
- class: InlineJavascriptRequirement | ||
|
||
inputs: | ||
message: | ||
type: string | ||
code: | ||
type: int | ||
|
||
outputs: | ||
message1: | ||
type: string | ||
outputSource: first/message | ||
message2: | ||
type: string | ||
outputSource: second/message | ||
code1: | ||
type: int | ||
outputSource: first/code | ||
code2: | ||
type: int | ||
outputSource: second/code | ||
number1: | ||
type: float | ||
outputSource: first/number | ||
number2: | ||
type: float | ||
outputSource: second/number | ||
integer1: | ||
type: int | ||
outputSource: first/integer | ||
integer2: | ||
type: int | ||
outputSource: second/integer | ||
|
||
steps: | ||
first: | ||
run: PassthroughExpressions.cwl | ||
in: | ||
message: message | ||
code: code | ||
out: | ||
- message | ||
- code | ||
- number | ||
- integer | ||
second: | ||
run: PassthroughExpressions.cwl | ||
in: | ||
message: first/message | ||
code: first/code | ||
out: | ||
- message | ||
- code | ||
- number | ||
- integer |
7 changes: 7 additions & 0 deletions
7
tests/functional/application-packages/WorkflowStepMerge/deploy.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
processDescription: | ||
process: | ||
id: WorkflowStepMerge | ||
executionUnit: | ||
# note: This does not work by itself! The test suite injects the file dynamically. | ||
- test: "tests/functional/application-packages/WorkflowStepMerge/package.cwl" | ||
deploymentProfileName: "http://www.opengis.net/profiles/eoc/workflow" |
3 changes: 3 additions & 0 deletions
3
tests/functional/application-packages/WorkflowStepMerge/execute.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
inputs: | ||
message1: Hello | ||
message2: World |
36 changes: 36 additions & 0 deletions
36
tests/functional/application-packages/WorkflowStepMerge/package.cwl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
cwlVersion: v1.2 | ||
class: Workflow | ||
inputs: | ||
message1: | ||
type: string | ||
message2: | ||
type: string | ||
outputs: | ||
output: | ||
type: File | ||
outputSource: concat/output | ||
requirements: | ||
- class: MultipleInputFeatureRequirement | ||
- class: InlineJavascriptRequirement | ||
- class: StepInputExpressionRequirement | ||
- class: SubworkflowFeatureRequirement | ||
steps: | ||
msg1: | ||
# evaluate 'SubworkflowFeatureRequirement' | ||
run: WorkflowChainStrings.cwl | ||
in: | ||
message: message1 | ||
out: [output] | ||
concat: | ||
run: Echo.cwl | ||
in: | ||
message: | ||
# evaluate 'MultipleInputFeatureRequirement' | ||
source: | ||
- msg1/output | ||
- message2 | ||
# evaluate 'linkMerge' (schema definition) | ||
# below value is the default that would be used if omitted | ||
linkMerge: merge_nested | ||
valueFrom: "${ return self.map(txt => txt.trim()).join(); }" | ||
out: [output] |
Oops, something went wrong.