It will be easier to add behavior to your meta model thanks the coding view because you can clearly see blocks of code (conditions, loops...).
Then have a look at the "fsm.kmt" file in the "kermeta" directory.
The class diagram suggests that we must fill in three operations :
run() for FSM class,
step(String): String for State class,
and fire(): String for Transition class.