Skip to content
v2.7 (latest)

Create a Persisted Entity ​

This guide explains how to set up a Ruleset and Entity for use with Persisted Entities in Rulecube.

Prerequisites ​

  • You have an active Rulecube account.
  • You have created a Ruleset, or are ready to create one.

Procedure ​

Step 1: Enable persistency on the Ruleset ​

Persisted Entities require the Ruleset to be a Library with persistency enabled.

  1. Open your Ruleset and go to Version Settings in the left menu.
  2. Check the Library box.
  3. Check the Allow persistency box.
  4. Save the Ruleset.

Step 2: Create an Entity and enable persistency ​

  1. Click the + sign next to Entities in the left menu.
  2. Enter a name for the Entity, for example Person.
  3. Add the properties you need. For example:
    • FirstName — type string
    • LastName — type string
    • Birthdate — type date
  4. Check the Allow persistency box on the Entity.
  5. Save the Ruleset.

The Entity is now a Persisted Entity and can be stored in the database.

Next steps ​

Now that your Persisted Entity is set up, you can: