Merge remote-tracking branch 'origin/main' into new_report

This commit is contained in:
burnettk 2022-12-02 16:29:16 -05:00
commit de29278c79
3 changed files with 4 additions and 4 deletions

View File

@ -1851,7 +1851,7 @@ lxml = "*"
type = "git" type = "git"
url = "https://github.com/sartography/SpiffWorkflow" url = "https://github.com/sartography/SpiffWorkflow"
reference = "main" reference = "main"
resolved_reference = "bba7ddf5478af579b891ca63c50babbfccf6b7a4" resolved_reference = "062eaf15d28c66f8cf07f68409429560251b12c7"
[[package]] [[package]]
name = "SQLAlchemy" name = "SQLAlchemy"

View File

@ -1,4 +1,4 @@
"""Get_env.""" """Save process instance metadata."""
from typing import Any from typing import Any
from flask_bpmn.models.db import db from flask_bpmn.models.db import db

View File

@ -178,9 +178,9 @@ class CustomBpmnScriptEngine(PythonScriptEngine): # type: ignore
) )
return Script.generate_augmented_list(script_attributes_context) return Script.generate_augmented_list(script_attributes_context)
def evaluate(self, task: SpiffTask, expression: str) -> Any: def evaluate(self, task: SpiffTask, expression: str, external_methods=None) -> Any:
"""Evaluate.""" """Evaluate."""
return self._evaluate(expression, task.data, task) return self._evaluate(expression, task.data, task, external_methods)
def _evaluate( def _evaluate(
self, self,