- All Implemented Interfaces:
- ProcessStepWorker, OpenHabEventProvider.OHEventItemStateListener
public class OpenHabWaitForEvent
extends Object
implements ProcessStepWorker, OpenHabEventProvider.OHEventItemStateListener
Simple Worker to receive Updates from OpenHab in a process step. This Worker reads all
startdata port datatypetype names. The names of this types should match with items in
openhab. This worker blocks till an update is received. If the event object name equals
an type name, the worker updates the parameter value, add the value to return list,
stops the receiving of events and returns the list.
It is only one event supported, so if there are more than one data endports with
different data type names, this process may never finish cause some ports will not be
activated.
The Uri Base Path is read from the startdata port which type name equals 'stepserverbasepath'.
ATTENTION:
At the moment this is only a workaround for demo purposes
- Author:
- André Kühnert