57
58
59
60
61
62
63
64
65
66
67
68
69
|
# File 'lib/rules_engine/process/runner.rb', line 57
def run_workflow(process_id, plan, workflow_name, data = {})
RulesEngine::Process.auditor.audit(process_id, "Workflow : #{workflow_name} : started", RulesEngine::Process::AUDIT_INFO)
success = _run_plan_workflow(process_id, plan, workflow_name, data)
if success
RulesEngine::Process.auditor.audit(process_id, "Workflow : #{workflow_name} : success", RulesEngine::Process::AUDIT_SUCCESS)
else
RulesEngine::Process.auditor.audit(process_id, "Workflow : #{workflow_name} : failure", RulesEngine::Process::AUDIT_FAILURE)
end
success
end
|