From 646d803be00ad59dd2eea948f4a9b0ff5ae61e31 Mon Sep 17 00:00:00 2001 From: jbirddog <100367399+jbirddog@users.noreply.github.com> Date: Mon, 13 Feb 2023 18:52:06 -0500 Subject: [PATCH] Don't try to complete a ready task to move the process instance diagram to the next yellow. (#136) --- .../routes/process_instances_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_instances_controller.py b/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_instances_controller.py index 40a0147f8..61d3eb597 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_instances_controller.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/routes/process_instances_controller.py @@ -622,7 +622,7 @@ def process_instance_task_list( spiff_task = processor.__class__.get_task_by_bpmn_identifier( step_details[-1].bpmn_task_identifier, processor.bpmn_process_instance ) - if spiff_task is not None: + if spiff_task is not None and spiff_task.state != TaskState.READY: spiff_task.complete() spiff_tasks = None