mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-01-26 17:29:13 +00:00
use typename when returning a task w/ burnettk
This commit is contained in:
parent
9544fe3f3a
commit
129b7479b4
@ -81,7 +81,7 @@ class TaskModel(SpiffworkflowBaseDBModel):
|
|||||||
form_ui_schema: Optional[dict] = None
|
form_ui_schema: Optional[dict] = None
|
||||||
process_model_display_name: Optional[str] = None
|
process_model_display_name: Optional[str] = None
|
||||||
process_model_identifier: Optional[str] = None
|
process_model_identifier: Optional[str] = None
|
||||||
type: Optional[str] = None
|
typename: Optional[str] = None
|
||||||
can_complete: Optional[bool] = None
|
can_complete: Optional[bool] = None
|
||||||
extensions: Optional[dict] = None
|
extensions: Optional[dict] = None
|
||||||
name_for_display: Optional[str] = None
|
name_for_display: Optional[str] = None
|
||||||
|
@ -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.data = task_model.get_data()
|
||||||
task_model.process_model_display_name = process_model.display_name
|
task_model.process_model_display_name = process_model.display_name
|
||||||
task_model.process_model_identifier = process_model.id
|
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_model.can_complete = can_complete
|
||||||
task_process_identifier = task_model.bpmn_process.bpmn_process_definition.bpmn_identifier
|
task_process_identifier = task_model.bpmn_process.bpmn_process_definition.bpmn_identifier
|
||||||
task_model.name_for_display = TaskService.get_name_for_display(task_definition)
|
task_model.name_for_display = TaskService.get_name_for_display(task_definition)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user