Search in sources :

Example 16 with NopAction

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

the class CompletedSPCompensatingBot method setupActions.

@Override
protected List<BATestScriptAction> setupActions() {
    List<BATestScriptAction> actions = new ArrayList();
    actions.add(new NopAction());
    actions.add(new BATestScriptAction(true, "MESSAGE_COMPENSATED", URI.create(WON_TX.STATE_COMPENSATING.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 17 with NopAction

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

the class ActiveSPCancelingFailingUriBot method setupActions.

@Override
protected List<BATestScriptAction> setupActions() {
    List<BATestScriptAction> actions = new ArrayList();
    // automatic
    // actions.add(new BATestScriptAction(false, "MESSAGE_CANCEL", URI.create(WON_BA.STATE_ACTIVE.getURI()), 3));
    actions.add(new NopAction());
    actions.add(new BATestScriptAction(true, URI.create(WON_TX.MESSAGE_FAIL.getURI()), URI.create(WON_TX.STATE_CANCELING.getURI())));
    actions.add(new BATestScriptAction(false, URI.create(WON_TX.MESSAGE_FAILED.getURI()), URI.create(WON_TX.STATE_FAILING_ACTIVE_CANCELING.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 18 with NopAction

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

the class ActiveSPCancelingUriBot method setupActions.

@Override
protected List<BATestScriptAction> setupActions() {
    List<BATestScriptAction> actions = new ArrayList();
    actions.add(new NopAction());
    actions.add(new BATestScriptAction(true, URI.create(WON_TX.MESSAGE_CANCELED.getURI()), URI.create(WON_TX.STATE_CANCELING.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 19 with NopAction

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

the class ActiveFPBot 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 20 with NopAction

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

the class ActiveSPCancelingBot 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, "MESSAGE_CANCELED", 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)

Aggregations

ArrayList (java.util.ArrayList)28 BATestScriptAction (won.bot.framework.eventbot.listener.baStateBots.BATestScriptAction)28 NopAction (won.bot.framework.eventbot.listener.baStateBots.NopAction)28