add automata state

Signed-off-by: achaly <achaly@163.com>