@@ -242,6 +242,37 @@ def get_running_workflow_step(
242
242
# "id": "r-workflow-step-00000000-0000-0000-0000-000000000001",
243
243
# },
244
244
245
+ @abstractmethod
246
+ def get_running_workflow_step_by_name (
247
+ self , * , name : str , running_workflow_id : str
248
+ ) -> tuple [dict [str , Any ], int ]:
249
+ """Get a RunningWorkflowStep Record given a step name
250
+ (and its RUnningWorkflow ID)"""
251
+ # Should return:
252
+ # {
253
+ # "id": "r-workflow-step-00000000-0000-0000-0000-000000000001",
254
+ # "name:": "step-1234",
255
+ # "done": False,
256
+ # "success": false,
257
+ # "error_num": 0,
258
+ # "error_msg": "",
259
+ # "variables": {
260
+ # "x": 1,
261
+ # "y": 2,
262
+ # },
263
+ # "running_workflow": {
264
+ # "id": "r-workflow-00000000-0000-0000-0000-000000000001",
265
+ # },
266
+ # }
267
+ # If not present an empty dictionary should be returned.
268
+ #
269
+ # For steps that are not the first in a workflow the following field
270
+ # can be expected in the response: -
271
+ #
272
+ # "prior_running_workflow_step": {
273
+ # "id": "r-workflow-step-00000000-0000-0000-0000-000000000001",
274
+ # },
275
+
245
276
@abstractmethod
246
277
def set_running_workflow_step_variables (
247
278
self ,
@@ -312,12 +343,11 @@ def get_job(
312
343
313
344
@abstractmethod
314
345
def realise_outputs (
315
- self , * , running_workflow_step_id : str , outputs : list [tuple [ str , str ] ]
346
+ self , * , running_workflow_step_id : str , outputs : list [str ]
316
347
) -> tuple [dict [str , Any ], int ]:
317
- """Copy (link) the step's files as outputs into the Project directory,
318
- while also renaming the file. A step ID is provided, along with a list of
319
- outputs (files in the instance directory) and the required counterpart file
320
- in the Project directory."""
348
+ """Copy (link) the step's files as outputs into the Project directory.
349
+ A step ID is provided, along with a list of outputs
350
+ (files that will be in the step's instance directory)."""
321
351
# Should return an empty map or:
322
352
# {
323
353
# "error": "<error message>",
0 commit comments