Make sure we are using the correct script engine

This commit is contained in:
Kelly McDonald 2021-05-26 10:50:20 -04:00
parent 620b9a5188
commit acccf3b704
1 changed files with 1 additions and 0 deletions

View File

@ -206,6 +206,7 @@ def update_task(workflow_id, task_id, body, terminate_loop=None, update_all=Fals
processor = WorkflowProcessor(workflow_model) processor = WorkflowProcessor(workflow_model)
task_id = uuid.UUID(task_id) task_id = uuid.UUID(task_id)
spiff_task = processor.bpmn_workflow.get_task(task_id) spiff_task = processor.bpmn_workflow.get_task(task_id)
spiff_task.workflow.script_engine = processor.bpmn_workflow.script_engine
_verify_user_and_role(processor, spiff_task) _verify_user_and_role(processor, spiff_task)
user = UserService.current_user(allow_admin_impersonate=False) # Always log as the real user. user = UserService.current_user(allow_admin_impersonate=False) # Always log as the real user.