public boolean process ( MessageEnvelope envelope ) { if ( this . event == null ) { return false ; } boolean triggered = this . event . verifyEventCondition ( envelope ) ; if ( triggered ) { beforeReply ( envelope ) ; if ( this . reply != null ) { this . reply . reply ( envelope ) ; } afterReply ( envelope ) ; } return triggered ; }
Executes the reply if the event is triggered .