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
Updated demo JSON rules to match model
Rich Turnerb530de8d4fd4
diff --git a/manager/src/main/resources/demo/rules/DemoGeofence.json b/manager/src/main/resources/demo/rules/DemoGeofence.jsonindex 52004c75f..9cc5752b9 100644--- a/manager/src/main/resources/demo/rules/DemoGeofence.json+++ b/manager/src/main/resources/demo/rules/DemoGeofence.json@@ -44,9 +44,6 @@"then": [{"action": "notification",- "target": {- "useAssetsFromWhen": true- },"notification": {"name": "De Kuip","message": {diff --git a/manager/src/main/resources/demo/rules/smartcity/DeKuip.json b/manager/src/main/resources/demo/rules/smartcity/DeKuip.jsonindex 483eb2566..9cc5752b9 100644--- a/manager/src/main/resources/demo/rules/smartcity/DeKuip.json+++ b/manager/src/main/resources/demo/rules/smartcity/DeKuip.json@@ -44,15 +44,6 @@"then": [{"action": "notification",- "target": {- "matchedAssets": {- "types": [- {- "predicateType": "string"- }- ]- }- },"notification": {"name": "De Kuip","message": {diff --git a/manager/src/main/resources/demo/rules/smartcity/EnvironmentAlerts.json b/manager/src/main/resources/demo/rules/smartcity/EnvironmentAlerts.jsonindex b11c3b068..e4c74428f 100644--- a/manager/src/main/resources/demo/rules/smartcity/EnvironmentAlerts.json+++ b/manager/src/main/resources/demo/rules/smartcity/EnvironmentAlerts.json@@ -76,17 +76,14 @@"then": [{"action": "notification",+ "target": {+ "custom": "[email protected]"+ },"notification": {"message": {"type": "email","subject": "%RULESET_NAME%",- "html": "%TRIGGER_ASSETS%",- "to": [- {- "address": "[email protected]",- "name": "[email protected]"- }- ]+ "html": "%TRIGGER_ASSETS%"}}}diff --git a/manager/src/main/resources/demo/rules/smartcity/Euromast.json b/manager/src/main/resources/demo/rules/smartcity/Euromast.jsonindex 698f862b6..f610bcbd1 100644--- a/manager/src/main/resources/demo/rules/smartcity/Euromast.json+++ b/manager/src/main/resources/demo/rules/smartcity/Euromast.json@@ -44,15 +44,6 @@"then": [{"action": "notification",- "target": {- "matchedAssets": {- "types": [- {- "predicateType": "string"- }- ]- }- },"notification": {"name": "Euromast","message": {diff --git a/manager/src/main/resources/demo/rules/smartcity/Markthal.json b/manager/src/main/resources/demo/rules/smartcity/Markthal.jsonindex fa15c4a69..6f4298012 100644--- a/manager/src/main/resources/demo/rules/smartcity/Markthal.json+++ b/manager/src/main/resources/demo/rules/smartcity/Markthal.json@@ -44,15 +44,6 @@"then": [{"action": "notification",- "target": {- "matchedAssets": {- "types": [- {- "predicateType": "string"- }- ]- }- },"notification": {"name": "Markthal","message": {diff --git a/manager/src/main/resources/demo/rules/smartcity/MarkthalChargersInUse.json b/manager/src/main/resources/demo/rules/smartcity/MarkthalChargersInUse.jsonindex 70f560dfd..6d76adb98 100644--- a/manager/src/main/resources/demo/rules/smartcity/MarkthalChargersInUse.json+++ b/manager/src/main/resources/demo/rules/smartcity/MarkthalChargersInUse.json@@ -137,17 +137,14 @@"then": [{"action": "notification",+ "target": {+ "custom": "[email protected]"+ },"notification": {"message": {"type": "email","subject": "%RULESET_NAME%",- "html": "%TRIGGER_ASSETS%",- "to": [- {- "address": "[email protected]",- "name": "[email protected]"- }- ]+ "html": "%TRIGGER_ASSETS%"}}}diff --git a/manager/src/main/resources/demo/rules/smartcity/ParkingFull.json b/manager/src/main/resources/demo/rules/smartcity/ParkingFull.jsonindex 947407b09..ba67b39bf 100644--- a/manager/src/main/resources/demo/rules/smartcity/ParkingFull.json+++ b/manager/src/main/resources/demo/rules/smartcity/ParkingFull.json@@ -47,17 +47,14 @@"then": [{"action": "notification",+ "target": {+ "custom": "[email protected]"+ },"notification": {"message": {"type": "email","subject": "%RULESET_NAME%",- "html": "%TRIGGER_ASSETS%",- "to": [- {- "address": "[email protected]",- "name": "[email protected]"- }- ]+ "html": "%TRIGGER_ASSETS%"}}}@@ -65,4 +62,4 @@"name": "Parking: Almost full"}]-}\ No newline at end of file+}