From 60fac1e5272854d3c02ab0293df8469e25bc3e58 Mon Sep 17 00:00:00 2001 From: jasquat Date: Mon, 24 Apr 2023 15:18:57 -0400 Subject: [PATCH] use typename when returning a task w/ burnettk --- spiffworkflow-backend/src/spiffworkflow_backend/models/task.py | 2 +- .../src/spiffworkflow_backend/routes/tasks_controller.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/models/task.py b/spiffworkflow-backend/src/spiffworkflow_backend/models/task.py index 84914aa08..773ed2406 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/models/task.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/models/task.py @@ -81,7 +81,7 @@ class TaskModel(SpiffworkflowBaseDBModel): form_ui_schema: Optional[dict] = None process_model_display_name: Optional[str] = None process_model_identifier: Optional[str] = None - type: Optional[str] = None + typename: Optional[str] = None can_complete: Optional[bool] = None extensions: Optional[dict] = None name_for_display: Optional[str] = None diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/routes/tasks_controller.py b/spiffworkflow-backend/src/spiffworkflow_backend/routes/tasks_controller.py index 22de291e9..34d9ec851 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/routes/tasks_controller.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/routes/tasks_controller.py @@ -309,7 +309,7 @@ def task_show(process_instance_id: int, task_guid: str = "next") -> flask.wrappe task_model.data = task_model.get_data() task_model.process_model_display_name = process_model.display_name task_model.process_model_identifier = process_model.id - task_model.type = task_definition.typename + task_model.typename = task_definition.typename task_model.can_complete = can_complete task_process_identifier = task_model.bpmn_process.bpmn_process_definition.bpmn_identifier task_model.name_for_display = TaskService.get_name_for_display(task_definition)