Be careful not to clean out all the data when a form is submitted, just merge the data in as it comes.

This commit is contained in:
Dan Funk 2020-04-17 13:51:48 -04:00
parent 241980f98f
commit c8b817e98a
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ def update_task(workflow_id, task_id, body):
processor = WorkflowProcessor(workflow_model)
task_id = uuid.UUID(task_id)
task = processor.bpmn_workflow.get_task(task_id)
task.data = body
task.update_data(body)
processor.complete_task(task)
processor.do_engine_steps()
workflow_model.last_completed_task_id = task.id