You can create entities yourself, but if you have a JSON schema or XSD for the entities, there is a much faster and easier way: by dragging the schema or XSD into Rulecube, after which Rulecube automatically creates the entity. This saves you a lot of time and is less error-prone.
Rulecube has a significant stake in the world of mortgage lending, and in that, the Hypotheken Data Network (HDN) plays an important role. And within HDN, the so-called AX Data Catalogus XSD is one of the leading data specifications, which is also an excellent template for entities.
Therefore, this guide focuses on importing the specifications from the AX Data Catalogus XSD as entities by dragging and dropping. By the way, this XSD has over 6,400 lines, so creating the corresponding entities by hand would be a lot of (unnecessary) work.
If necessary, open the following link and save it to your desktop:
You're going to create entities from the XSD and then use one of the entities in a rule to calculate the Loan-To-Value (LTV), which is an important ratio in mortgage lending, to assess the lending risk.
Create a ruleset named LoanToValue
.
Open your file manager and go to the folder where the XSD is located.
Drag the AX_Data_Catalogus.xsd
file to the Entities section in Rulecube and drop it.
↳ Rulecube automatically creates all the entities based on the XSD.
Create an input named OfferteAanvraag
and set its Type to (the entity) OfferteAanvraagType
.
Create a rule named LoanToValue
.
In the Expression field, enter the following code:
Explanation The LTV is calculated by dividing the mortgage amount by the market value.
Save the rule and try it out by filling in the input values for:
• OfferteAanvraag.Lening.HypotheekBedrag
• OfferteAanvraag.Object.MarktWaarde
You can search for these inputs with these steps:
Click anywhere inside the Input field.
Press Ctrl+F
to open the Find box.
Enter your search string. ↳ As you type, the find functionality automatically selects the first element that matches your typed characters.