100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
Changed asset event from server to include attributes
Rich Turner9ad24739703c
diff --git a/manager/src/main/java/org/openremote/manager/asset/AssetStorageService.java b/manager/src/main/java/org/openremote/manager/asset/AssetStorageService.javaindex 2d3d6df19..71b15dcfc 100644--- a/manager/src/main/java/org/openremote/manager/asset/AssetStorageService.java+++ b/manager/src/main/java/org/openremote/manager/asset/AssetStorageService.java@@ -1615,8 +1615,8 @@ public class AssetStorageService extends RouteBuilder implements ContainerServicAsset asset = persistenceEvent.getEntity();switch (persistenceEvent.getCause()) {case CREATE:- // Fully load the asset (excluding attributes)- Asset loadedAsset = find(new AssetQuery().select(Select.selectAll().excludeAttributes(true)).ids(asset.getId()));+ // Fully load the asset+ Asset loadedAsset = find(new AssetQuery().select(Select.selectAll()).ids(asset.getId()));clientEventService.publishEvent(new AssetEvent(AssetEvent.Cause.CREATE, loadedAsset, null)@@ -1661,8 +1661,8 @@ public class AssetStorageService extends RouteBuilder implements ContainerServicreturn !Objects.equals(oldValue, newValue);}).toArray(String[]::new);- // Fully load the asset (excluding attributes)- loadedAsset = find(new AssetQuery().select(Select.selectAll().excludeAttributes(true)).ids(asset.getId()));+ // Fully load the asset+ loadedAsset = find(new AssetQuery().select(Select.selectAll()).ids(asset.getId()));clientEventService.publishEvent(new AssetEvent(AssetEvent.Cause.UPDATE, loadedAsset, updatedProperties)