...
The following example defines a rule that :
- accepts two attributes
- uses expandable error text
- uses a triple-quoted
validate
section to allow multiple lines - defines multiple closures
...
The entity
configuration element defines which rules are applied to a specific entity type. The configuration is comprised of the following properties:
type / indexing | if using type, the value is a unique name of the type of entity if using indexing, the value is a list of runtime indices extracted from the event; or a pre-configured default value |
validation | the set of rules to apply to this entity and (for each rule) the attributes to be read from the entity (in order to create the rule's arguments) |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
entity { type 'complex' validation { useRule { name 'CLLI' attributes 'physical-location-id' } useRule {name 'complex is related to 1 oam-network' } useRule { name 'if a customer is related to an oam-network then oam-network.network-name must match naming convention' attributes 'relationship-list.relationship[*]' } } } |
...