From 1215e18287ab8285b402fe3ec69429d81310e054 Mon Sep 17 00:00:00 2001 From: burnettk Date: Sun, 22 Jan 2023 18:10:47 -0500 Subject: [PATCH] add sum and format --- .../services/process_instance_processor.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/services/process_instance_processor.py b/spiffworkflow-backend/src/spiffworkflow_backend/services/process_instance_processor.py index a4c22d53a..8ca1e36f2 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/services/process_instance_processor.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/services/process_instance_processor.py @@ -151,16 +151,18 @@ class CustomBpmnScriptEngine(PythonScriptEngine): # type: ignore def __init__(self) -> None: """__init__.""" default_globals = { - "timedelta": timedelta, - "datetime": datetime, - "dateparser": dateparser, - "pytz": pytz, - "time": time, - "decimal": decimal, "_strptime": _strptime, + "dateparser": dateparser, + "datetime": datetime, + "decimal": decimal, "enumerate": enumerate, + "format": format, "list": list, "map": map, + "pytz": pytz, + "sum": sum, + "time": time, + "timedelta": timedelta, } # This will overwrite the standard builtins