Search in sources :

Example 51 with BATestScriptAction

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

the class BACCStateCompensateUriBot 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_COMPLETED.getURI()), URI.create(WON_TX.STATE_COMPLETING.getURI())));
    actions.add(new BATestScriptAction(false, URI.create(WON_TX.MESSAGE_COMPENSATE.getURI()), URI.create(WON_TX.STATE_COMPLETED.getURI())));
    actions.add(new BATestScriptAction(true, URI.create(WON_TX.MESSAGE_COMPENSATED.getURI()), URI.create(WON_TX.STATE_COMPENSATING.getURI())));
    return actions;
}
Also used : BATestScriptAction(won.bot.framework.eventbot.listener.baStateBots.BATestScriptAction) ArrayList(java.util.ArrayList)

Example 52 with BATestScriptAction

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

the class BACCStateCompleteCancelFailUriBot 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(false, URI.create(WON_TX.MESSAGE_CANCEL.getURI()), URI.create(WON_TX.STATE_COMPLETING.getURI())));
    actions.add(new BATestScriptAction(true, URI.create(WON_TX.MESSAGE_FAIL.getURI()), URI.create(WON_TX.STATE_CANCELING_COMPLETING.getURI())));
    actions.add(new BATestScriptAction(false, URI.create(WON_TX.MESSAGE_FAILED.getURI()), URI.create(WON_TX.STATE_FAILING_ACTIVE_CANCELING_COMPLETING.getURI())));
    return actions;
}
Also used : BATestScriptAction(won.bot.framework.eventbot.listener.baStateBots.BATestScriptAction) ArrayList(java.util.ArrayList)

Example 53 with BATestScriptAction

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

the class BACCStateCompleteCannotCompleteUriBot 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_CANNOTCOMPLETE.getURI()), URI.create(WON_TX.STATE_COMPLETING.getURI())));
    actions.add(new BATestScriptAction(false, URI.create(WON_TX.MESSAGE_NOTCOMPLETED.getURI()), URI.create(WON_TX.STATE_NOT_COMPLETING.getURI())));
    return actions;
}
Also used : BATestScriptAction(won.bot.framework.eventbot.listener.baStateBots.BATestScriptAction) ArrayList(java.util.ArrayList)

Example 54 with BATestScriptAction

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

the class CompletedSPCCompensatingUriBot 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_COMPENSATED.getURI()), 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 55 with BATestScriptAction

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

the class CompletedSPCompensatingFailingUriBot 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_FAIL.getURI()), URI.create(WON_TX.STATE_COMPENSATING.getURI())));
    actions.add(new BATestScriptAction(false, URI.create(WON_TX.MESSAGE_FAILED.getURI()), URI.create(WON_TX.STATE_FAILING_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)

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