Asset Profile Switch
Use this node to route messages to different downstream paths based on the originator asset’s profile name — for example, applying different alarm thresholds to HVAC assets versus Temperature Sensor assets. The originator must be an ASSET; any other entity type results in Failure.
Configuration
Section titled “Configuration”This node has no configuration options. The connection label used for routing is determined entirely at runtime from the asset profile name.
Message processing algorithm
Section titled “Message processing algorithm”- Check that the message originator entity type is
ASSET. If not, route viaFailure. - Fetch the asset’s profile from the database to retrieve its name. If the profile is not found (e.g., the asset was deleted while the message was queued), route via
Failure. - Route the message via a connection whose label exactly matches the fetched profile name.
Output connections
Section titled “Output connections”| Connection | Condition |
|---|---|
<profile name> | Originator is an ASSET and its profile was found; label equals the profile name. |
Failure | Originator is not an ASSET, profile not found, or an unexpected error occurred. |
Examples
Section titled “Examples”Example 1 — Asset profile is Boiler Room
Section titled “Example 1 — Asset profile is Boiler Room”State: originator is an asset with profile name Boiler Room.
Result: message routed via Boiler Room.
Example 2 — Originator is not an asset → Failure
Section titled “Example 2 — Originator is not an asset → Failure”State: originator entity type is DEVICE.
Result: message routed via Failure — asset profile switch requires an ASSET originator.
Example 3 — Asset deleted before processing → Failure
Section titled “Example 3 — Asset deleted before processing → Failure”State: originator entity type is ASSET, but the asset no longer exists.
Result: message routed via Failure — profile cannot be fetched.
JSON schema
Section titled “JSON schema”{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "EmptyNodeConfiguration", "type": "object", "properties": {}, "additionalProperties": false}