fix user tasks and manual tasks

This commit is contained in:
burnettk 2022-09-29 00:35:10 -04:00
parent 8da5746bf6
commit 74e3784459
1 changed files with 2 additions and 2 deletions

View File

@ -881,7 +881,7 @@ def task_show(process_instance_id: int, task_id: str) -> flask.wrappers.Response
) )
) )
if task.type == "UserTask": if task.type == "User Task":
if not form_schema_file_name: if not form_schema_file_name:
raise ( raise (
ApiError( ApiError(
@ -908,7 +908,7 @@ def task_show(process_instance_id: int, task_id: str) -> flask.wrappers.Response
) )
if ui_form_contents: if ui_form_contents:
task.form_ui_schema = ui_form_contents task.form_ui_schema = ui_form_contents
elif task.type == "ManualTask": elif task.type == "Manual Task":
if task.properties and task.data: if task.properties and task.data:
if task.properties["instructionsForEndUser"]: if task.properties["instructionsForEndUser"]:
task.properties["instructionsForEndUser"] = render_jinja_template( task.properties["instructionsForEndUser"] = render_jinja_template(