Search in sources :

Example 11 with BATestScriptAction

use of won.bot.framework.eventbot.listener.baStateBots.BATestScriptAction in project webofneeds by researchstudio-sat.

the class ActiveExitVoteSPUriBot method setupActions.

@Override
protected List<BATestScriptAction> setupActions() {
    List<BATestScriptAction> actions = new ArrayList();
    actions.add(new BATestScriptAction(false, URI.create(WON_TX.MESSAGE_EXITED.getURI()), URI.create(WON_TX.STATE_EXITING.getURI())));
    return actions;
}
Also used : BATestScriptAction(won.bot.framework.eventbot.listener.baStateBots.BATestScriptAction) ArrayList(java.util.ArrayList)

Example 12 with BATestScriptAction

use of won.bot.framework.eventbot.listener.baStateBots.BATestScriptAction in project webofneeds by researchstudio-sat.

the class ActiveFPUriBot method setupActions.

@Override
protected List<BATestScriptAction> setupActions() {
    List<BATestScriptAction> actions = new ArrayList();
    actions.add(new NopAction());
    return actions;
}
Also used : BATestScriptAction(won.bot.framework.eventbot.listener.baStateBots.BATestScriptAction) ArrayList(java.util.ArrayList) NopAction(won.bot.framework.eventbot.listener.baStateBots.NopAction)

Example 13 with BATestScriptAction

use of won.bot.framework.eventbot.listener.baStateBots.BATestScriptAction in project webofneeds by researchstudio-sat.

the class ActiveFailingVoteFPUriBot method setupActions.

@Override
protected List<BATestScriptAction> setupActions() {
    List<BATestScriptAction> actions = new ArrayList();
    actions.add(new NopAction());
    actions.add(new NopAction());
    actions.add(new BATestScriptAction(true, URI.create(WON_TX.MESSAGE_FAIL.getURI()), URI.create(WON_TX.STATE_ACTIVE.getURI())));
    return actions;
}
Also used : BATestScriptAction(won.bot.framework.eventbot.listener.baStateBots.BATestScriptAction) ArrayList(java.util.ArrayList) NopAction(won.bot.framework.eventbot.listener.baStateBots.NopAction)

Example 14 with BATestScriptAction

use of won.bot.framework.eventbot.listener.baStateBots.BATestScriptAction in project webofneeds by researchstudio-sat.

the class ActiveSPCancelingUriBot method setupActions.

@Override
protected List<BATestScriptAction> setupActions() {
    List<BATestScriptAction> actions = new ArrayList();
    // automatic
    // actions.add(new BATestScriptAction(true, "MESSAGE_CANCEL", URI.create(WON_BA.STATE_ACTIVE.getURI()), 3));
    actions.add(new NopAction());
    actions.add(new BATestScriptAction(true, URI.create(WON_TX.MESSAGE_CANCELED.getURI()), URI.create(WON_TX.STATE_CANCELING_ACTIVE.getURI())));
    return actions;
}
Also used : BATestScriptAction(won.bot.framework.eventbot.listener.baStateBots.BATestScriptAction) ArrayList(java.util.ArrayList) NopAction(won.bot.framework.eventbot.listener.baStateBots.NopAction)

Example 15 with BATestScriptAction

use of won.bot.framework.eventbot.listener.baStateBots.BATestScriptAction in project webofneeds by researchstudio-sat.

the class CompletedBlockedFPUriBot method setupActions.

@Override
protected List<BATestScriptAction> setupActions() {
    List<BATestScriptAction> actions = new ArrayList();
    actions.add(new BATestScriptAction(false, URI.create(WON_TX.MESSAGE_COMPLETE.getURI()), URI.create(WON_TX.STATE_ACTIVE.getURI())));
    actions.add(new BATestScriptAction(true, URI.create(WON_TX.MESSAGE_CLOSED.getURI()), URI.create(WON_TX.STATE_COMPLETING.getURI())));
    return actions;
}
Also used : BATestScriptAction(won.bot.framework.eventbot.listener.baStateBots.BATestScriptAction) ArrayList(java.util.ArrayList)

Aggregations

BATestScriptAction (won.bot.framework.eventbot.listener.baStateBots.BATestScriptAction)107 ArrayList (java.util.ArrayList)105 NopAction (won.bot.framework.eventbot.listener.baStateBots.NopAction)28 URI (java.net.URI)2 BATestBotScript (won.bot.framework.eventbot.listener.baStateBots.BATestBotScript)2