Removing an unused function and addign a fix me.
This commit is contained in:
parent
a243c14d75
commit
acb43cc271
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue