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.
- Open your Ruleset and go to Version Settings in the left menu.
- Check the Library box.
- Check the Allow persistency box.
- Save the Ruleset.
Step 2: Create an Entity and enable persistency ​
- Click the + sign next to Entities in the left menu.
- Enter a name for the Entity, for example
Person. - Add the properties you need. For example:
FirstName— typestringLastName— typestringBirthdate— typedate
- Check the Allow persistency box on the Entity.
- 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:
- Save and Update Entities — store new and updated instances