Json rule editor is an unornamented web interface tool to manage your business rules and decision outcomes. A single page application to effortlesly upload / create business rules via json files. Since the lightweight libraries are the new normal in web applications, possessing logics in json file will be a effective way to manage the application code. Having said that redudancy can be detoured by discarding the other business rule file format such as xml or excel, which is often hectic to parse and adding complications to developer.
Process to implement json rule file in your application follows
- Generate rule file using json rule editor
- Place the generated file in your application folder,
- and pass the relative path of file and input parameters into json rules engine to get the output.
Facinating feature it implies is, we can validate the business decisions instantly once after rules are added. Thus, ensuring expected outcome is returned from the rule sheet before generates the file. Consequently it eliminates issues at first place when rules are being created instead of identifing at later stage of development or testing.
To launch the json rule editor tool, you can do either of the below
- Click json rule editor
- or install it locally via
git clone https://github.com/vinzdeveloper/json-rule-editor.git
- start the application by
npm install
andnpm start
- start the application by
The detailed steps to create json rule file using this tool in next section.
In principle, json rules engine is an integral backbone library should be added into your application to process the business rules created from this rule editor. It is highly recommended to go through the json rules engine concepts and explore the features it offers.
Install json rules engine in your application using the steps mentioned in the npm
This documentation explains the steps to create / manage rules in json rule editor tool.
This documentation covers,