Don't try to complete a ready task to move the process instance diagram to the next yellow. (#136)

This commit is contained in:
jbirddog 2023-02-13 18:52:06 -05:00 committed by GitHub
parent 6621a7979b
commit 646d803be0
1 changed files with 1 additions and 1 deletions

View File

@ -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