跳转至

事件规则#

🔒 EventRule.Show

概述#

考虑到实体类型及其相关操作,为不同事件事件规则提供一组标准警报管理通知。它为你提供了仅使用配置和开箱即用功能配置标准通知的能力。

事件规则表示自动触发“通知”或“规则”类型操作的异步警报。

如果操作类型为“通知”,则事件规则具有用户定义的严重性,并且可以针对特定员工、每个人或角色。还可以配置跟踪和间隙的类型,可以分为三种类型:

  1. 自动的-一旦到达有效截止日期,系统将自动清除通知。
  2. 手动每个用户-每个雇员必须清除该通知。 在这种情况下,必须设置有效截止日期。
  3. 手动单个用户-第一个清除通知的雇员将关闭它。

此外,GUI 将在状态栏的通知图标中显示通知的数量。不同的严重性、颜色和显示行为在通用表 NotificationSeverity 中配置。

如果操作类型为规则,则必须将作用域定义为事件规则。此外,当检测到事件和条件时,系统将自动调用并执行规则。

Info

事件规则实体是报警管理的一部分,报警管理是关键的制造可选模块。

Info

事件规则只能在集装箱化的环境中工作。

Info

必须有雇员关联的对象才能使用事件规则

数据模型#

graph TD
    Main[Event Rule] --- A1[Event Rule Action]

classDef mermaid_title color:#000, fill:#fafafa, stroke:#fafafa, stroke-width:0x, font-size:100%, font-weight:200;
classDef mermaid_start color:#000, fill:#fafafa, stroke:#fafafa, color:#fafafa, stroke-width:0x, font-size:100%, visibility: hidden;
classDef mermaid_businessdata color:#000, fill:#65CDE8, stroke:#65CDE8, stroke-width:0px, font-size:100%;
classDef mermaid_nonbusinessdata color:#000, fill:#B7DEE8, stroke:#B7DEE8, stroke-width:0px, font-size:100%;
classDef mermaid_entity color:#000, fill:#FB9F53, stroke:#FB9F53, stroke-width:0px, font-size:100%;
classDef mermaid_entitylinked color:#000, fill:#FCD5B5, stroke:#FCD5B5, stroke-width:0px, font-size:100%;
classDef mermaid_context color:#000, fill:#B9CDE5, stroke:#B9CDE5, stroke-width:0px, font-size:100%;
classDef mermaid_optional color:#000, fill:#B7DEE8, stroke:#65CDE8, stroke-width:1px, font-size:100%, stroke-dasharray: 5 5;
class Main mermaid_entity
class A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12 mermaid_businessdata
class L1,L2,L3,L4,L5,L6 mermaid_entitylinked
class C1,C2,C3,C4,C5,C6 mermaid_context
class N1,N2,N3,N4,N5,N6 mermaid_nonbusinessdata

图像:事件规则数据模型

步骤顺序#

正确配置和使用事件规则的必要步骤如下:

  1. 在查找表 NotificationTypeNotificationSeverity 中创建不同的通知类型和严重性。
  2. 在通用表 NotificationSeverity 中配置不同的严重性。
  3. 使用定义事件规则的范围创建不同的规则(在 RuleScope 查找表中配置)。有关详细信息,请参见创建规则
  4. 创建事件规则