📖
Rulecube documentation
v2.0
v2.0
  • Overview
  • Quick Start
  • Tutorial
    • Getting started
    • Create and Run Your First Ruleset
    • Use Constants and Methods
    • Create and Call Functions
    • Adding Testcases
    • Using Lookup Tables
    • Using Entities
  • How-to Guides
    • Logging in and Authorization
      • Activate Your Account From an Invitation
      • Log in to Rulecube
      • Change Your Password
      • Recover Your Password
      • Two-factor authentication (2FA)
      • Invite Other Users to Rulecube
      • Edit a User's Role
      • Delete a User
    • Ruleset Development
      • Create a Ruleset
      • Set the Input for a Ruleset
      • Create a Rule
      • Generate Alerts
      • Try out a Ruleset
      • Call a Ruleset from Your Software
      • Entities
        • Create an Entity
        • Drag and Drop a JSON Schema or XSD to create entities
        • Advanced topic: Entity instantiation
      • Constants
        • Constant Tables
      • Functions
      • Built-in Functions
      • Create and Run a Testcase
      • Delete a Ruleset or Components
      • Debugging your Ruleset
    • Create a Workflow
      • Workflow step types
      • Working with documents in a workflow
    • Work with (Environment) Variables
    • Call a Ruleset via Its API From Postman
    • Creating input from JSON Schema
    • Use a Ruleset from Your Software
    • Ruleset Productivity Tips
  • Language Reference
    • Global
    • Finance
    • Http
    • Mail
    • MongoDB
    • SQL
    • Statistics
    • Workflow
    • System
    • Array
    • Date
Powered by GitBook
On this page
  • Introduction
  • Before you begin
  • Procedure
  • Step 1: Drag and drop the XSD to create entities
  • Step 2: Create a rule to calculate the LTV
  1. How-to Guides
  2. Ruleset Development
  3. Entities

Drag and Drop a JSON Schema or XSD to create entities

PreviousCreate an EntityNextAdvanced topic: Entity instantiation

Last updated 1 year ago

Introduction

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.

Before you begin

  • If necessary, open the following link and save it to your desktop:

Procedure

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.

Step 1: Drag and drop the XSD to create entities

  1. Create a ruleset named LoanToValue.

  2. Open your file manager and go to the folder where the XSD is located.

  3. 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.

  4. Create an input named OfferteAanvraag and set its Type to (the entity) OfferteAanvraagType.

Step 2: Create a rule to calculate the LTV

  1. Create a rule named LoanToValue.

  2. In the Expression field, enter the following code:

    OfferteAanvraag.Lening.HypotheekBedrag / OfferteAanvraag.Object.MarktWaarde

    Explanation The LTV is calculated by dividing the mortgage amount by the market value.

  3. 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:

    1. Click anywhere inside the Input field.

    2. Press Ctrl+F to open the Find box.

    3. Enter your search string. ↳ As you type, the find functionality automatically selects the first element that matches your typed characters.

351KB
AX_Data_Catalogus.xsd