State awareness
Status: Pre-Alpha
Brought to you by:
ghhale
Introduce state awareness. State says that the situation fires when some condition occurs, beginning the state, and then does not fire again until the state is left - via another situation. For example:
condition jobStarted is jobEvent within 5000;
condition jobStopped is not jobEvent within 15000;
action notifyStart is { ... };
action notifyStop is { ... };
state jobRunning begins with notifyStart ends with notifyStop;
when jobStarted start jobRunning;
when jobStopped stop jobRunning;
Not a good example, because you could do this without state, but I'll come back with a better example later...