Search in sources :

Example 71 with BATestScriptAction

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

the class BAPCStateActiveFailBot method setupActions.

@Override
protected List<BATestScriptAction> setupActions() {
    List<BATestScriptAction> actions = new ArrayList();
    actions.add(new BATestScriptAction(true, "MESSAGE_FAIL", URI.create(WON_TX.STATE_ACTIVE.getURI())));
    actions.add(new BATestScriptAction(false, "MESSAGE_FAILED", 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)

Example 72 with BATestScriptAction

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

the class BAPCStateCompensateFailBot method setupActions.

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

Example 73 with BATestScriptAction

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

the class BAPCStateCompleteBot method setupActions.

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

Example 74 with BATestScriptAction

use of won.bot.framework.eventbot.listener.baStateBots.BATestScriptAction 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.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 75 with BATestScriptAction

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

the class ActiveSPCancelingFailingBot 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, "MESSAGE_FAIL", URI.create(WON_TX.STATE_CANCELING.getURI())));
    actions.add(new BATestScriptAction(false, "MESSAGE_FAILED", 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)

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