Skip to content

Receive node is triggered by any message #2

@tskaard

Description

@tskaard

It's not possible to get the receive node to timeout when waiting for a specific message from a device.

2019-08-05 21:51:33.632 debug flow     Next node id = 2
2019-08-05 21:51:33.729 debug fnode     Reactor-Waiting for event .chan size = 7
2019-08-05 21:51:33.776 info fnode     New message :
2019-08-05 21:51:33.88 debug fnode     Reactor-WaitForEvent is stopped
2019-08-05 21:51:33.883 debug flow     New event from reactor node.
2019-08-05 21:51:33.867 debug fnode     --New message--
2019-08-05 21:51:33.957 debug flow     Next node id = 5

Node:
{
"Id": "2",
"Type": "receive",
"Label": "wait for door to close",
"SuccessTransition": "5",
"TimeoutTransition": "7",
"ErrorTransition": "",
"Address": "pt:j1/mt:evt/rt:dev/rn:zw/ad:1/sv:sensor_contact/ad:44_0",
"Service": "sensor_contact",
"ServiceInterface": "evt.open.report",
"Config": {
"IsValueFilterEnabled": false,
"Timeout": 10,
"ValueFilter": {
"Value": "",
"ValueType": ""
}
},
"Ui": {
"nodeType": "",
"x": 212,
"y": 603
}
},

func (node *ReceiveNode) WaitForEvent(nodeEventStream chan model.ReactorEvent) {

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions