Business Rules
Simple interface to create custom business rules that you can process on your code and check if pass or not
Example
;; implements Rule public status: boolean; public code: string; public msg: string; private data: boolean; { thiscode = code; thisdata = data; thisstatus = true; } public process: boolean console; if !thisdata thismsg = "Fails rule"; thisstatus = false; else thismsg = "Pass rule"; return thisstatus; var ruleObject = ;var rm = RulesManager; rm; var result = rm; if !result console; else console; forvar rule of rm console; console; console; console;
Run test
You can run the test
npm run start-test
Contributing
Refer to CONTRIBUTING.md