Search in sources :

Example 41 with BATestScriptAction

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

the class BACCStateCompleteCannotCompleteBot method setupActions.

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

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

the class BACCStateCompleteExitBot method setupActions.

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

Example 43 with BATestScriptAction

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

the class BACCStateExitBot method setupActions.

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

Example 44 with BATestScriptAction

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

the class BACCStateFailureOne method setupActions.

@Override
protected List<BATestScriptAction> setupActions() {
    List<BATestScriptAction> actions = new ArrayList();
    // Message can be sent from Participant, but not from this state
    actions.add(new BATestScriptAction(true, "MESSAGE_CANCELED", URI.create(WON_TX.STATE_CANCELING_ACTIVE.getURI())));
    // Message can not be sent from Participant, only from Coordinator
    actions.add(new BATestScriptAction(true, "MESSAGE_CANCELED", URI.create(WON_TX.STATE_ACTIVE.getURI())));
    // da je false ne bi radilo!!! ispitaj!!!
    // Message can not be sent from Participant, only from Coordinator
    actions.add(new BATestScriptAction(true, "MESSAGE_CANCELED", URI.create(WON_TX.STATE_ACTIVE.getURI())));
    actions.add(new BATestScriptAction(false, "MESSAGE_CANCEL", URI.create(WON_TX.STATE_ACTIVE.getURI())));
    actions.add(new BATestScriptAction(true, "MESSAGE_CANCELED", URI.create(WON_TX.STATE_CANCELING_ACTIVE.getURI())));
    // actions.add(new BATestScriptAction(true, "MESSAGE_CANCELED", URI.create(WON_BA.STATE_CANCELING_ACTIVE.getURI())));
    return actions;
}
Also used : BATestScriptAction(won.bot.framework.eventbot.listener.baStateBots.BATestScriptAction) ArrayList(java.util.ArrayList)

Example 45 with BATestScriptAction

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

the class CompletedBlockedFPBot 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())));
    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