- public void execute(State currentState, State previousState) {
- System.out.println(String.format("currentState: %s, previousState: %s", currentState, previousState));
+ public void execute(Output output) {
+ System.out.println(String.format("Triggered by %s.", output.text("text/plain", -1)));