mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-25 01:09:10 +00:00
f3b2b10d37
a6392d190 SpiffWorkflow cold start improvements (#13) git-subtree-dir: SpiffWorkflow git-subtree-split: a6392d19061f623394f5705fb78af23673d3940d
13 lines
423 B
Python
13 lines
423 B
Python
import datetime
|
|
from decimal import Decimal
|
|
|
|
from SpiffWorkflow.bpmn.PythonScriptEngine import PythonScriptEngine
|
|
|
|
from ..DecisionRunner import DecisionRunner
|
|
|
|
class PythonDecisionRunner(DecisionRunner):
|
|
|
|
def __init__(self, filename):
|
|
scripting_additions={'Decimal': Decimal, 'datetime': datetime}
|
|
super().__init__(PythonScriptEngine(scripting_additions=scripting_additions), filename, 'python_engine')
|