Skip to main content
Version: 3.8

Object Groups in the R-COM Gateway

Object Groups in R-COM Gateway provide a structured way to store, manage, and reuse persistent data inside automated workflows.

In many automation scenarios, reacting to an event is not enough. A workflow may also need to know which asset was scanned, where it was last seen, whether it already exists, or whether a specific combination of values is unique. Object Groups solve this by acting as a persistent data layer for workflow-related entities.

An Object Group defines both:

  • The collection of Objects that belong to that group.
  • The structure that each Object must follow.

For example, an Object Group named MedicalEquipment can store individual equipment records, where each record contains attributes such as equipment ID, status, assigned department, and maintenance date.

Key Concepts​

Object​

An Object is a single data record inside an Object Group. It represents a real-world entity, asset, item, person, or process-related concept.

Examples:

Use CaseObject Example
Warehouse managementA pallet, product, container, or returnable transport item
HealthcareA patient, infusion pump, medical device, or room
Asset trackingA tool, machine, vehicle, or tagged asset
Inventory managementA product, stock item, or storage location

Example Object data:

{
"product_id": "PRD001",
"location": "Aisle-3",
"status": "Available",
"last_scanned_at": "2025-05-15T10:23:00Z"
}

In this example:

AttributeDescription
product_idUnique identifier for the product
locationCurrent or last known location
statusCurrent state of the product
last_scanned_atTimestamp of the last scan event

Object Group​

An Object Group is a named collection of Objects that share the same structure.

For example, a MedicalEquipment Object Group may contain records for all medical devices in a hospital. Each equipment record follows the same attribute structure, such as equipment ID, name, location, status, and maintenance date.

Object Structure​

The Object Structure defines the attributes available for each Object in the Object Group.

You can think of the Object Structure as a database table definition. Each attribute behaves like a column, and each Object behaves like a row in that table.

Example:

Column NameData Type
equipment_idString
nameString
locationString
maintenance_dueDate
is_activeBoolean

Every Object created inside this Object Group must follow this structure.

Create a New Object Group​

Step 1: Navigate to the Object Group Settings​

From the main R-COM Gateway dashboard:

  1. Go to Settings > Client Settings > Object Groups. This page lists all available object groups.
  2. Click New Object Group to begin.
Create new Object Group

Create a new object group.


Step 2: Configure Basic Settings​

Fill in the following fields when creating a new Object Group:

Create new Object Group

Set up basic object group informations.

SettingDescription
Unique Object Group NameInternal system name for the Object Group. This value must be unique within the system. Use a stable technical name such as medicalEquipment, productInventory, or patientRecords.
Object Group NameDisplay name shown in the R-COM Gateway user interface. This can be user-friendly and may contain spaces, such as Medical Equipment or Product Inventory.
Object Group TypeOptional parent group used to organize Object Groups hierarchically. For example, Warehouse can be the parent for ProductInventory and LoadingDocks.
Trigger Event on ChangeDefines whether an event should be triggered when an Object is created, updated, or deleted. This is useful when other workflows need to react to Object changes.
Allow AttachmentAllows users to add attachments when creating or editing Objects from the stock view.
Group RequiredRequires a valid group selection before a new Object can be created.
DescriptionOptional description explaining the purpose of the Object Group.
Icon ImageOptional icon displayed for the Object Group in the R-COM Gateway interface.

Step 3: Define Object Attributes (Object Structure)​

This is where you define the actual data fields (the Object Structure) that each Object in this group will have. You'll typically see a table where you can add and configure these attributes, similar to defining columns in a database table.

Create new Object Group

setting up object attributes.

Tip: Click the Properties icon (⚙) next to any attribute to open advanced configuration options including validation rules.

Attribute Parameters

Attribute parameters configuration.

Each Object in the group will follow the structure you define here. Below are the configurable fields for each attribute:

FieldDescription
Column NameInternal field name for the attribute. Use lowercase letters, underscores, or camelCase. Avoid spaces and special characters. Examples: product_id, equipmentName, last_scan_time.
Data TypeSpecifies the kind of data the attribute holds. See the Data Types reference below.
PropertiesOpens an advanced configuration panel. See the Properties reference below.
Allow NullIndicates whether the attribute may be left empty. Mark essential fields (such as primary IDs) as non-nullable to enforce data completeness.
RemoveClick the × icon to delete the attribute from the Object Structure. While updating structure, Referenced columns cannot be modified directly, remove the reference first, then apply changes.

Data Types​

Data TypeDescriptionExample
NumberWhole numeric values10, 250, 1000
DecimalNumeric values with decimals12.5, 98.75
String (Max)Text without a fixed character limitLong descriptions, comments
String (Limit)Text with a defined maximum lengthProduct codes, short names
DateCalendar date values2026-06-18
BooleanTrue / false valuetrue, false
ObjectReferenceLinks this attribute to another Object within the same client.
GuidGlobally unique identifierSystem-generated identifiers
CustomFixed list or selected custom valueStatus values such as Available, In Use, Blocked
info

For String (Limit), define the maximum allowed length.

Example:

  • Set a limit of 500 if the field should accept text up to 500 characters.

Properties Panel​

Clicking the Properties (⚙) icon on any attribute opens the following configuration options:

OptionDescription
Column DescriptionA short explanation of the field's purpose, displayed as documentation and user guidance when working with the Object.
Regular ExpressionA regex pattern that validates user input before it is saved.
Regex Error MessageThe message shown when validation fails. Accepts plain text or translation keys (e.g. ERROR.invalid_email). Provides meaningful feedback when input does not match the expected pattern.

Step 4: Define Unique Constraints​

info

Primary Key Management: Manual primary key management has been removed from the Object Group Designer. All primary key behavior and rules are now handled entirely through Unique Constraints.

Unique Constraints allow you to enforce data integrity rules across one or more attributes in the Object Group. They ensure that no two Objects share the same combination of values for the constrained columns. A Unique Constraint defines one or more attributes that must have a unique value combination across all Objects in the Object Group.

How Unique Constraints Work​

  • Each unique constraint contains one or more attributes.
  • When a new Object is created, R-COM Gateway validates the Object against all configured unique constraints.
  • All constraints must pass for a new Object to be successfully added to the group.
  • Each constraint spans one or more columns you select.
  • Within a single constraint, at least one of the included attribute values must be present for that constraint to be evaluated.
  • Multiple constraints are evaluated independently — all must be satisfied simultaneously.
  • If any unique constraint fails, the Object is rejected because it would create a duplicate value or duplicate value combination.

Managing Constraints​

Unique Constraints

Unique Constraints configuration.

  1. Scroll to the Unique Constraints section at the bottom of the Object Attributes screen.
  2. Click + Add Unique Constraint to create a new constraint row.
  3. Select one or more attribute columns to include in the constraint using the column picker.
  4. Repeat for each additional constraint required.
  5. To remove a constraint, click the × (Remove) button on that constraint row.
note

Example: A constraint on [EquipmentName + Location] means no two equipment records may share the same name and location simultaneously. A separate constraint on [EquipmentID] ensures the ID is always globally unique.


Final Step: Save Your Object Group​

Once you’ve defined the structure and settings:

  1. Review your configuration.
  2. Click Create (or Save) to finalize the Object Group.

Example: Creating a "Medical Equipment" Object Group​

Goal​

Track all medical devices in a hospital environment.

Settings > Client Settings > Object Groups > New Object Group

Configuration​

  • Unique Object Group Name: MedicalEquipment
  • Display Name: Medical Equipment
  • Parent Group (optional): HospitalAssets
  • Trigger Event on Change: Enabled for Update
  • Icon: Upload a relevant equipment icon

Attributes​

Create new Object Group

setting up object attributes.


Finalize​

Click Create to save.