Object Change Event in R-COM Gateway
The Object Change event type in R-COM Gateway allows you to build reactive workflows that respond to changes in object data. This mechanism listens for object-level CRUD operations (Create, Update, Delete) performed within defined Object Schemas and triggers an associated workflow automatically through an Event Rule.
When Is the Event Triggered?β
The event is emitted when an object in a designated Object Schema undergoes any of the following operations:
| Action Type | Description |
|---|---|
Create | Triggered when a new object is created in the Object Schema. |
Update | Triggered when any attribute of an existing object is modified. |
Delete | Triggered when an object is deleted from the Object Schema. |
These triggers are configured per Object Schema. Enable them while defining the groupβs structure.
Event Type: Object Changeβ
All Create, Update, and Delete operations generate a unified event of type Object Change.
The event includes:
- The Object Schema name
- The type of operation
- The associated object data
You can configure an Event Rule to listen for Object Change events, filter by operation types, and route them to a relevant workflow.
How to Set Up an Event Rule for Object Changesβ
- Go to Automation > Event Rules.
- Select Create Event Rule.
- In the Event Source, select any value (mandatory, but irrelevant for this event type).
- Under Trigger Type, select Object Change.
- Under Trigger Configuration:
ObjectChange, set the values that determine which changes trigger the rule:
| Parameter | Type | Description |
|---|---|---|
OBJECT_GROUP_NAME * | String | Select the Object Schema to monitor, for example DEVICE. |
GROUP | String | An additional Group parameter available in the form. Its intended behavior requires product confirmation. |
ADDED_OBJECT | Bool | Triggers for object creation. |
UPDATED_OBJECT | Bool | Triggers for object updates. |
DELETED_OBJECT | Bool | Triggers for object deletion. |
Enable only the operations relevant to your use case. To handle multiple operations in one workflow, enable multiple options.
- Select Validate. When the Event trigger section shows Valid, choose the Target workflow and Workflow Version.
- Click Save.
Once configured, the Event Rule monitors the selected Object Schema and actions. When a match is detected, the event payload is passed to the workflow.
π Use Case Exampleβ
Scenario: Automatically handle device registration.
- Trigger:
ADDED_OBJECTfor Object SchemaDEVICE - Workflow:
RegisterNewDevice - Result: Every time a new device is created, its details are passed to the workflow which updates inventory and alerts the team.