updated backend to send instructions for user tasks through jinja as well w/ burnettk danfunk
This commit is contained in:
parent
383f21b7a6
commit
6bfaf9c5c2
|
@ -1069,8 +1069,9 @@ 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 == "Manual Task":
|
|
||||||
if task.properties and task.data:
|
if task.properties and task.data and "instructionsForEndUser" in task.properties:
|
||||||
|
print(f"task.properties['instructionsForEndUser']: {task.properties['instructionsForEndUser']}")
|
||||||
if task.properties["instructionsForEndUser"]:
|
if task.properties["instructionsForEndUser"]:
|
||||||
task.properties["instructionsForEndUser"] = render_jinja_template(
|
task.properties["instructionsForEndUser"] = render_jinja_template(
|
||||||
task.properties["instructionsForEndUser"], task.data
|
task.properties["instructionsForEndUser"], task.data
|
||||||
|
|
Loading…
Reference in New Issue