use of org.jbpm.workflow.core.impl.DroolsConsequenceAction in project jbpm by kiegroup.
the class HumanTaskNodeFactory method timer.
public HumanTaskNodeFactory timer(String delay, String period, String dialect, String action) {
Timer timer = new Timer();
timer.setDelay(delay);
timer.setPeriod(period);
getHumanTaskNode().addTimer(timer, new DroolsConsequenceAction(dialect, action));
return this;
}
use of org.jbpm.workflow.core.impl.DroolsConsequenceAction in project jbpm by kiegroup.
the class MilestoneNodeFactory method timer.
public MilestoneNodeFactory timer(String delay, String period, String dialect, String action) {
Timer timer = new Timer();
timer.setDelay(delay);
timer.setPeriod(period);
getMilestoneNode().addTimer(timer, new DroolsConsequenceAction(dialect, action));
return this;
}
use of org.jbpm.workflow.core.impl.DroolsConsequenceAction in project jbpm by kiegroup.
the class MilestoneNodeFactory method onExitAction.
public MilestoneNodeFactory onExitAction(String dialect, String action) {
if (getMilestoneNode().getActions(dialect) != null) {
getMilestoneNode().getActions(dialect).add(new DroolsConsequenceAction(dialect, action));
} else {
List<DroolsAction> actions = new ArrayList<DroolsAction>();
actions.add(new DroolsConsequenceAction(dialect, action));
getMilestoneNode().setActions(MilestoneNode.EVENT_NODE_EXIT, actions);
}
return this;
}
use of org.jbpm.workflow.core.impl.DroolsConsequenceAction in project jbpm by kiegroup.
the class RuleFlowProcessFactory method exceptionHandler.
public RuleFlowProcessFactory exceptionHandler(String exception, String dialect, String action) {
ActionExceptionHandler exceptionHandler = new ActionExceptionHandler();
exceptionHandler.setAction(new DroolsConsequenceAction(dialect, action));
return exceptionHandler(exception, exceptionHandler);
}
use of org.jbpm.workflow.core.impl.DroolsConsequenceAction in project jbpm by kiegroup.
the class CompositeNodeFactory method exceptionHandler.
public CompositeNodeFactory exceptionHandler(String exception, String dialect, String action) {
ActionExceptionHandler exceptionHandler = new ActionExceptionHandler();
exceptionHandler.setAction(new DroolsConsequenceAction(dialect, action));
return exceptionHandler(exception, exceptionHandler);
}
Aggregations