I´ve tried that, but in this case the stat value whould by something like this Threshold.StatValue = StatAction.SDNACallOutbound, becouse we are talking about the column that has the agent current state and also the duration of that state. So I can set a thershold for the agent current state bau can´t set one to the duration.