@@ -134,6 +134,26 @@ def parse_with_id(cls, d, identifier):
134
134
return super (WorkflowStepInput , cls ).parse_dict (d )
135
135
136
136
137
+ class WorkflowStepOutput (Serializable ):
138
+ """
139
+ Associate an output parameter of the underlying process with a workflow parameter.
140
+ The workflow parameter (given in the id field) be may be used as a source to connect with
141
+ input parameters of other workflow steps, or with an output parameter of the process.
142
+
143
+ Documentation: https://www.commonwl.org/v1.0/Workflow.html#WorkflowStepOutput
144
+ """
145
+ def __init__ (self , output_id ):
146
+ """
147
+ :param output_id: A unique identifier for this workflow output parameter. This is the identifier to use in
148
+ the source field of WorkflowStepInput to connect the output value to downstream parameters.
149
+ :type output_id: STRING
150
+ """
151
+ self .id = output_id
152
+
153
+ def get_dict (self ):
154
+ return self .id
155
+
156
+
137
157
class WorkflowStep (Serializable ):
138
158
"""
139
159
A workflow step is an executable element of a workflow. It specifies the underlying process implementation
@@ -143,7 +163,11 @@ class WorkflowStep(Serializable):
143
163
Documentation: https://www.commonwl.org/v1.0/Workflow.html#WorkflowStep
144
164
"""
145
165
146
- parse_types = {"inputs" : [[WorkflowStepInput ]]}
166
+ # dict['in'] gets converted to dict['inputs'] as 'in' is a reserved keyword
167
+ parse_types = {
168
+ "inputs" : [[WorkflowStepInput ]],
169
+ "out" : [[WorkflowStepOutput ]]
170
+ }
147
171
148
172
def __init__ (self , step_id , run , label = None , doc = None , scatter = None , scatter_method = None ):
149
173
"""
@@ -192,26 +216,6 @@ def parse_dict(cls, d):
192
216
return super (WorkflowStep , cls ).parse_dict (d )
193
217
194
218
195
- class WorkflowStepOutput (Serializable ):
196
- """
197
- Associate an output parameter of the underlying process with a workflow parameter.
198
- The workflow parameter (given in the id field) be may be used as a source to connect with
199
- input parameters of other workflow steps, or with an output parameter of the process.
200
-
201
- Documentation: https://www.commonwl.org/v1.0/Workflow.html#WorkflowStepOutput
202
- """
203
- def __init__ (self , output_id ):
204
- """
205
- :param output_id: A unique identifier for this workflow output parameter. This is the identifier to use in
206
- the source field of WorkflowStepInput to connect the output value to downstream parameters.
207
- :type output_id: STRING
208
- """
209
- self .id = output_id
210
-
211
- def get_dict (self ):
212
- return self .id
213
-
214
-
215
219
class WorkflowOutputParameter (Parameter ):
216
220
"""
217
221
Describe an output parameter of a workflow. The parameter must be connected to one or more parameters
0 commit comments