use typename when returning a task w/ burnettk

This commit is contained in:
jasquat 2023-04-24 15:18:57 -04:00
parent 8ae23a1577
commit 60fac1e527
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

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

View File

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