use of won.bot.framework.eventbot.listener.baStateBots.BATestScriptAction in project webofneeds by researchstudio-sat.
the class ActiveBlockingSPBot 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_COMPLETED", URI.create(WON_TX.STATE_COMPLETING.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;
}
use of won.bot.framework.eventbot.listener.baStateBots.BATestScriptAction in project webofneeds by researchstudio-sat.
the class ActiveCannotCompleteVoteSPBot method setupActions.
@Override
protected List<BATestScriptAction> setupActions() {
List<BATestScriptAction> actions = new ArrayList();
actions.add(new BATestScriptAction(true, "MESSAGE_CANNOTCOMPLETE", URI.create(WON_TX.STATE_ACTIVE.getURI())));
// no vote!
actions.add(new BATestScriptAction(false, "MESSAGE_NOTCOMPLETED", URI.create(WON_TX.STATE_NOT_COMPLETING.getURI())));
return actions;
}
use of won.bot.framework.eventbot.listener.baStateBots.BATestScriptAction in project webofneeds by researchstudio-sat.
the class ActiveExitVoteSPBot 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())));
// no vote!
actions.add(new BATestScriptAction(false, "MESSAGE_EXITED", URI.create(WON_TX.STATE_EXITING.getURI())));
return actions;
}
use of won.bot.framework.eventbot.listener.baStateBots.BATestScriptAction in project webofneeds by researchstudio-sat.
the class CompletingBlockingFPBot 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_COMPLETED", URI.create(WON_TX.STATE_COMPLETING.getURI())));
return actions;
}
use of won.bot.framework.eventbot.listener.baStateBots.BATestScriptAction in project webofneeds by researchstudio-sat.
the class CompletingBlockingSPBot method setupActions.
@Override
protected List<BATestScriptAction> setupActions() {
List<BATestScriptAction> actions = new ArrayList();
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;
}
Aggregations