-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathadvanced_workflow.yaml
73 lines (69 loc) · 1.99 KB
/
advanced_workflow.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
template_components:
task_schemas:
- objective: process_some_data
inputs:
- parameter: input_data
outputs:
- parameter: parsed_output
actions:
- input_file_generators:
- input_file: my_input_file
from_inputs:
- input_data
script: <<script:/home/mbexegc2/projects/lightform/matflow-user-documentation/generate_input_file.py>>
environments:
- scope:
type: any
environment: python_env
script_exe: python_script
script: <<script:/home/mbexegc2/projects/lightform/matflow-user-documentation/process_input_file.py>>
save_files:
- processed_file
output_file_parsers:
parsed_output:
from_files:
- my_input_file
- processed_file
script: <<script:/home/mbexegc2/projects/lightform/matflow-user-documentation/parse_output.py>>
save_files:
- parsed_output
- objective: process_data_without_input_file_generator
inputs:
- parameter: input_data
- parameter: path
actions:
- script: <<script:/home/mbexegc2/projects/lightform/matflow-user-documentation/generate_input_file.py>>
script_data_in: direct
script_exe: python_script
save_files:
- my_input_file
environments:
- scope:
type: any
environment: python_env
- script: <<script:/home/mbexegc2/projects/lightform/matflow-user-documentation/process_input_file.py>>
script_exe: python_script
environments:
- scope:
type: any
environment: python_env
save_files:
- processed_file
command_files:
- label: my_input_file
name:
name: input_file.json
- label: processed_file
name:
name: processed_file.json
- label: parsed_output
name:
name: parsed_output.json
tasks:
- schema: process_some_data
inputs:
input_data: [1, 2, 3, 4]
- schema: process_data_without_input_file_generator
inputs:
input_data: [1, 2, 3, 4]
path: input_file.json