CWL related files
authorSaurabh Agrawal <saurabhagrawal0412@gmail.com>
Sat, 16 Dec 2017 05:56:16 +0000 (00:56 -0500)
committerSuresh Marru <smarru@apache.org>
Sat, 16 Dec 2017 12:50:26 +0000 (07:50 -0500)
cwl-workflows/arguments.yml [new file with mode: 0644]
cwl-workflows/script_runner.cwl [new file with mode: 0644]
cwl-workflows/workflow-tool.cwl [new file with mode: 0644]

diff --git a/cwl-workflows/arguments.yml b/cwl-workflows/arguments.yml
new file mode 100644 (file)
index 0000000..6074f6d
--- /dev/null
@@ -0,0 +1,3 @@
+test_file: test.py
+arg_file1: airavata-client1.ini
+arg_file2: airavata-client2.ini
\ No newline at end of file
diff --git a/cwl-workflows/script_runner.cwl b/cwl-workflows/script_runner.cwl
new file mode 100644 (file)
index 0000000..1081a0f
--- /dev/null
@@ -0,0 +1,15 @@
+#!/usr/bin/env cwl-runner
+
+cwlVersion: v1.0
+class: CommandLineTool
+baseCommand: python3.6
+inputs:
+  test_script:
+    type: string
+    inputBinding:
+      position: 1
+  arg_file:
+    type: string
+    inputBinding:
+      position: 2
+outputs: []
\ No newline at end of file
diff --git a/cwl-workflows/workflow-tool.cwl b/cwl-workflows/workflow-tool.cwl
new file mode 100644 (file)
index 0000000..b3f10f8
--- /dev/null
@@ -0,0 +1,25 @@
+#!/usr/bin/env cwl-runner
+
+cwlVersion: v1.0
+class: Workflow
+inputs:
+  test_file: string
+  arg_file1: string
+  arg_file2: string
+
+outputs: []
+
+steps:
+  job1:
+    run: script_runner.cwl
+    in:
+      test_script: test_file
+      arg_file: arg_file1
+    out: []
+
+  job2:
+    run: script_runner.cwl
+    in:
+      test_script: test_file
+      arg_file: arg_file2
+    out: []
\ No newline at end of file