use of won.bot.framework.eventbot.action.impl.wonmessage.execCommand.ExecuteFeedbackCommandAction in project webofneeds by researchstudio-sat.
the class ExecuteWonMessageCommandBehaviour method onActivate.
@Override
protected void onActivate(Optional<Object> message) {
this.subscribeWithAutoCleanup(CreateAtomCommandEvent.class, new ExecuteCreateAtomCommandAction(context));
this.subscribeWithAutoCleanup(ReplaceCommandEvent.class, new ExecuteReplaceCommandAction(context));
this.subscribeWithAutoCleanup(ConnectCommandEvent.class, new ExecuteConnectCommandAction(context));
this.subscribeWithAutoCleanup(ConnectionMessageCommandEvent.class, new ExecuteConnectionMessageCommandAction(context));
this.subscribeWithAutoCleanup(CloseCommandEvent.class, new ExecuteCloseCommandAction(context));
this.subscribeWithAutoCleanup(DeactivateAtomCommandEvent.class, new ExecuteDeactivateAtomCommandAction(context));
this.subscribeWithAutoCleanup(FeedbackCommandEvent.class, new ExecuteFeedbackCommandAction(context));
// if we receive a message command failure, log it
this.subscribeWithAutoCleanup(MessageCommandFailureEvent.class, new LogMessageCommandFailureAction(context));
}
Aggregations