I have setup an Event: Get node in a workflow using mutliple fields and match “ALL” type query. The node returns an event even though the items don’t match. What am I doing wrong here?
This is a loop workflow, so I use the mutate block to remove working.lastEvent
from the payload before the Event: Get node, so there is no stale info on the payload as shown below.
The input is working.currentAlertSettings
and the output is working.lastEventInfo
. Detailed payload after the Event: Get is shown below:
"currentAlertSettings": {
"index": 1,
"value": {
"ackRequiredToClear": true,
"attribute": "ch1pv",
"createdAt": "2021-05-11T12:51:33.989Z",
"deviceId": "609a7dd145c8a20006498f53",
"deviceName": "Demo Gateway IAC",
"enabled": true,
"id": "609a7dd545c8a200064994b8",
"level": 90,
"logic": 0,
"name": "LO Header Pressure",
"notificationsEnabled": true,
"severity": 3,
"severityStr": "critical",
"throttleEnabled": false,
"throttleLimit": 0,
"updatedAt": "2021-05-11T12:51:33.989Z"
}
},
"currentAttribute": {
"index": 1,
"key": "ch1pv",
"value": 85.46
},
"lastEventInfo": {
"applicationId": "609a7dd145c8a20006498f00",
"creationDate": "2021-06-07T20:33:03.243Z",
"deviceId": "609a7dd145c8a20006498f53",
"deviceName": "IAC Smart Plant Demo",
"eventId": "60be827f35fa3f0007667fbe",
"eventTags": {
"ackRequiredToClear": "true",
"attribute": "ch3pv",
"deviceId": "609a7dd145c8a20006498f53",
"deviceName": "Demo Gateway IAC",
"enabled": "true",
"level": "1.5",
"logic": "1",
"name": "HI Differential Pressure",
"notificationsEnabled": "true",
"severity": "3",
"severityStr": "critical",
"throttleEnabled": "false",
"throttleLimit": "0"
},
"id": "60be827f35fa3f0007667fbe",
"lastUpdated": "2021-06-07T20:33:03.389Z",
"level": "critical",
"message": "Limit: 1.5 Value: 3.04 Logic: 1 Severity: critical AckRequiredToClear: true",
"sourceId": "609a7dd145c8a200064991ea",
"sourceName": "process attribute alerts",
"sourceType": "flow",
"state": "new",
"subject": "HI Differential Pressure",
"updates": [
]
}