Location Measure Rules

This topic relates to the Location Status Change rules that are based on an entered measure:

  • Entry of Measure against Equipment
  • Entry of Measure against Location

The purpose of this functionality is to control the behaviour of the measure rules based on the total measure recorded against the location since the last status change. Each time the rule is executed, it calculates the total quantity recorded since the last status change and compares it with the target value set for the affected location. See: Location Measures - Cumulative Measures

Conditional Execution

The rule also defines the threshold value (the attribute Conditional %) that is used to decide whether the rule will be skipped, executed with automatic prompt, or executed silently (no prompt).

It is necessary to manually create a new attribute (or attributes) for the location in order to define the target value that will be evaluated by the rule. Then the rule attribute called LocationTargetAttribute can create a relationship between the measure rule and the location. The user interface allows users to select the name of the location target attribute to be used by the rule (A drop-down menu will be displayed with all of the Location attribute names. It is important to select the correct attribute name).

Example:

When the tonnes are entered against the location L1, we want to change the location status using the following condition:

0 < 70% of the target -> no status change

70% - 100% of the target -> status change with prompt message

> 100% -> status change without prompt message (silent)

  1. Create a new location target attribute, e.g. TargetTonnes. (manually, or using SQL, or using CSV import).
  2. In the Reference Data Editor, select the location (L1) and set the desired target value (e.g. 1000) for
    TargetTonnes: 1000.
  3. In the reference group Entry of Measure against Location, create the rule with the following attributes:

StatusSelectionMode: Automatic – Conditional Prompt

LocationTargetAttribute: TargetTonnes

Conditional %:70

Other rule attributes should be set as required.