Rulesets

Rulesets

About

Rulesets allow users to define their own set of rules for validating properties and models.

Users can define Rulesets using either a Visual Editor or a JSON Editor. These editors are linked, so any changes made in one will be reflected in the other.

 

Visual editor

“Object Filter”

The user specifies which objects will be affected by the rules. If this is left blank, the rules will apply to all models in the project.

  • “Property” refers to the property that will be affected by the rules. Multiple properties can be added using the logical operators “AND” or “OR.” Properties are written as “Property-set/Property.”
  • “Regex” is an expression that defines which properties are included.

 

“Rules”

The user specifies which objects should pass or fail the Rule.

  • “Property” refers to the property of the objects that should pass the rules. Multiple properties can be added using the logical operators “AND” or “OR.” Properties are written as “Property-set/Property.”
  • “Regex” is an expression that defines which properties are included.

 

“Result”

The user specifies the text for the result of the rules. For example, “True” means passed and “False” means failed.

 

JSON Editor

The user writes the code in JSON.

 

Resources for json coding and regex:

 

 

Video