Search in sources :

Example 1 with ExecuteDeactivateAtomCommandAction

use of won.bot.framework.eventbot.action.impl.wonmessage.execCommand.ExecuteDeactivateAtomCommandAction 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));
}
Also used : ExecuteReplaceCommandAction(won.bot.framework.eventbot.action.impl.wonmessage.execCommand.ExecuteReplaceCommandAction) ExecuteCreateAtomCommandAction(won.bot.framework.eventbot.action.impl.wonmessage.execCommand.ExecuteCreateAtomCommandAction) ExecuteDeactivateAtomCommandAction(won.bot.framework.eventbot.action.impl.wonmessage.execCommand.ExecuteDeactivateAtomCommandAction) ExecuteConnectionMessageCommandAction(won.bot.framework.eventbot.action.impl.wonmessage.execCommand.ExecuteConnectionMessageCommandAction) ExecuteConnectCommandAction(won.bot.framework.eventbot.action.impl.wonmessage.execCommand.ExecuteConnectCommandAction) ExecuteCloseCommandAction(won.bot.framework.eventbot.action.impl.wonmessage.execCommand.ExecuteCloseCommandAction) ExecuteFeedbackCommandAction(won.bot.framework.eventbot.action.impl.wonmessage.execCommand.ExecuteFeedbackCommandAction) LogMessageCommandFailureAction(won.bot.framework.eventbot.action.impl.wonmessage.execCommand.LogMessageCommandFailureAction)

Aggregations

ExecuteCloseCommandAction (won.bot.framework.eventbot.action.impl.wonmessage.execCommand.ExecuteCloseCommandAction)1 ExecuteConnectCommandAction (won.bot.framework.eventbot.action.impl.wonmessage.execCommand.ExecuteConnectCommandAction)1 ExecuteConnectionMessageCommandAction (won.bot.framework.eventbot.action.impl.wonmessage.execCommand.ExecuteConnectionMessageCommandAction)1 ExecuteCreateAtomCommandAction (won.bot.framework.eventbot.action.impl.wonmessage.execCommand.ExecuteCreateAtomCommandAction)1 ExecuteDeactivateAtomCommandAction (won.bot.framework.eventbot.action.impl.wonmessage.execCommand.ExecuteDeactivateAtomCommandAction)1 ExecuteFeedbackCommandAction (won.bot.framework.eventbot.action.impl.wonmessage.execCommand.ExecuteFeedbackCommandAction)1 ExecuteReplaceCommandAction (won.bot.framework.eventbot.action.impl.wonmessage.execCommand.ExecuteReplaceCommandAction)1 LogMessageCommandFailureAction (won.bot.framework.eventbot.action.impl.wonmessage.execCommand.LogMessageCommandFailureAction)1