B_AttributeRules

The B_AttributeRules table is used to define the attribute rules for features in a utility network.

FieldDescription

Input Table

The table or feature class that will have the rule applied.

Name

The name of the attribute rule.

Description

A description of the rule. The description is limited to 256 characters.

Type

The type of attribute rule to add. The following are valid inputs:

  • CALCULATION—Automatically populates attribute values for features when another attribute is set on a single feature or another related feature. When adding multiple calculation rules, the order in which the rules are added is important. These rules are applied when a feature is created or updated. This is the default.
  • CONSTRAINT—Specifies permissible attribute configuration on a feature. When the constraint rule is violated, an error is generated when storing the features.
  • VALIDATION—Check for existing features with a batch validation process. Rules are evaluated at a user-defined time.

Subtype

The subtype to which the rule will apply if the input table or feature class has subtypes.

Field

The field in the asset package that will have an attribute rule applied to it.

Is Editable

Defines whether the field is editable. To define a field as editable, set the value to True.

Trigger on Insert

Defines whether the attribute rule will be triggered when a feature is added.

Trigger on Delete

Defines whether the attribute rule will be triggered when a feature is deleted.

Trigger on Update

Defines whether the attribute rule will be triggered when a feature is updated.

Script Expression

The expression that defines how the field will be populated when the attribute rule is triggered.

Error Number

The error number that will be returned when the rule is violated.

Error Message

The error message that will be returned when the rule is violated. A descriptive message will help the editor understand the violation.

Exclude from Application Evaluation

Specifies whether the rule will be evaluated before edits are applied. Because not all clients may have the capability to run all of the available rules, you can choose to flag a rule.

Batch

Specifies whether the rule will be executed in batch mode.

Severity

The severity of the error. A value within the range of 1 through 5 can be chosen to define the severity of the rule. A value of 1 is high, being the most severe, and a value of 5 is low, being the least severe.

Tags

A set of tags to identify the rule (searchable and indexable) as a way to map to a functional requirement in a data model. To enter multiple tags, use a semicolon delimiter, for example, Tag1;Tag2;Tag3.

Is Enabled

Determines if a rule is enabled after creation. To disable, set to False.

Evaluation Order

When rules are evaluated, the order controls the sequence in which rules are evaluated. For calculation rules, the order in which rules are evaluated on a dataset is important, as this can cause the result of the rule evaluation to differ.

Category

A system-generated integer value that defines the rule category, if applicable.

Check Parameters

A system-generated JSON value that defines the configuration of a Data Reviewer-based rule.

Script Expression Backup

The fully qualified database name and schema for all Arcade script expressions found in the database.

Fields in the B_AttributeRules table of an asset package
Top