Removing an unused function and addign a fix me.

This commit is contained in:
Dan Funk 2020-07-22 11:40:49 -04:00
parent a243c14d75
commit acb43cc271
2 changed files with 2 additions and 4 deletions

View File

@ -76,6 +76,8 @@ def evaluate_python_expression(expression, body):
front end application needs to do real-time processing on task data. If for instance
there is a hide expression that is based on a previous value in the same form."""
try:
# fixme: The script engine should be pulled from Workflow Processor,
# but the one it returns overwrites the evaluate expression making it uncallable.
script_engine = PythonScriptEngine()
return script_engine.evaluate(expression, **body)
except Exception as e:

View File

@ -428,7 +428,3 @@ class WorkflowProcessor(object):
return spiff_task, field
raise ApiError("invalid_field",
"Unable to find a task in the workflow with a lookup field called: %s" % field_id)
@staticmethod
def get_script_engine():
return WorkflowProcessor._script_engine