43
44
45
46
47
48
49
50
51
52
53
54
55
|
# File 'lib/rules_engine/process/runner.rb', line 43
def run_plan(process_id, plan, data = {})
RulesEngine::Process.auditor.audit(process_id, "Plan : #{plan["code"]} : started", RulesEngine::Process::AUDIT_INFO)
success = _run_plan_workflow(process_id, plan, plan["workflow"], data)
if success
RulesEngine::Process.auditor.audit(process_id, "Plan : #{plan["code"]} : success", RulesEngine::Process::AUDIT_SUCCESS)
else
RulesEngine::Process.auditor.audit(process_id, "Plan : #{plan["code"]} : failure", RulesEngine::Process::AUDIT_FAILURE)
end
success
end
|