public void run() { // Create an event accepter and initialize waiting to false. super.run(); this.eventAccepter = new AcceptEventActionEventAccepter(); this.eventAccepter.actionActivation = this; this.waiting = false; }
public void terminate() { // Terminate this action and unregister its event accepter. super.terminate(); if (this.isWaiting()) { // CHANGED "this.waiting" to "this.isWaiting()". this.getExecutionContext().unregister(this.eventAccepter); this.waiting = false; } }