From 3d5c60b14b0fc3943707b4c76361d69a825df7f6 Mon Sep 17 00:00:00 2001 From: burnettk Date: Wed, 22 Feb 2023 14:36:26 -0500 Subject: [PATCH] why not dict, too --- .../src/spiffworkflow_backend/config/default.py | 4 ++++ .../services/process_instance_processor.py | 1 + 2 files changed, 5 insertions(+) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/config/default.py b/spiffworkflow-backend/src/spiffworkflow_backend/config/default.py index d16dcd91..a08ef3e0 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/config/default.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/config/default.py @@ -2,6 +2,10 @@ import re from os import environ +# Consider: https://flask.palletsprojects.com/en/2.2.x/config/#configuring-from-environment-variables +# and from_prefixed_env(), though we want to ensure that these variables are all documented, so that +# is a benefit of the status quo and having them all in this file explicitly. + SPIFFWORKFLOW_BACKEND_BPMN_SPEC_ABSOLUTE_DIR = environ.get( "SPIFFWORKFLOW_BACKEND_BPMN_SPEC_ABSOLUTE_DIR" ) 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 5aabe5ac..a579f554 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/services/process_instance_processor.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/services/process_instance_processor.py @@ -293,6 +293,7 @@ class CustomBpmnScriptEngine(PythonScriptEngine): # type: ignore "enumerate": enumerate, "format": format, "list": list, + "dict": dict, "map": map, "pytz": pytz, "sum": sum,