@@ -242,6 +242,37 @@ def get_running_workflow_step(
242242 # "id": "r-workflow-step-00000000-0000-0000-0000-000000000001",
243243 # },
244244
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+
245276 @abstractmethod
246277 def set_running_workflow_step_variables (
247278 self ,
@@ -312,12 +343,11 @@ def get_job(
312343
313344 @abstractmethod
314345 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 ]
316347 ) -> 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)."""
321351 # Should return an empty map or:
322352 # {
323353 # "error": "<error message>",
0 commit comments