◷ Reading Time: 4 minutes
This tutorial shows how to use Decision Tables and Natural Language to model business rules to execute in a JavaScript environment.
We will be using a scenario of validating the school staff and student relations.
Running the Sample
- Open ValidateRelations_NL.xml or ValidateRelations_NL.xml.

- Click on Logic Run Template.

- Click on one of the given templates.

- Click Debug.

- Click Next Step to go step by step.

- You will see the output under the Parameters window and error notifications in the Notification window (if there are any).


Test in JS Test Bed
You can test your logic in the built-in JS Test Bed.
- Open ValidateRelations_NL.xml or ValidateRelations_NL.xml.
- Click on JS Test Bed.

- Click on Launch.

- You will be directed to the JS Test Bed where you can test your logic.

Project Description
We have modeled the same business rules in two different files.
The project contains the following files:
- To show the properties of the person. But we have not used it in the project itself.

- Define business rules in the tabular form and expressions

Natural Language
- Write business rules in spoken language and monad expressions

Download the project
Use the attachment at the end of the page to download the sample project.