use of io.automatiko.engine.workflow.process.core.ProcessAction in project automatiko-engine by automatiko-io.
the class ActionNodeFactory method action.
public ActionNodeFactory action(Action action) {
ProcessAction processAction = new ProcessAction();
processAction.setMetaData(ACTION, action);
getActionNode().setAction(processAction);
return this;
}
use of io.automatiko.engine.workflow.process.core.ProcessAction in project automatiko-engine by automatiko-io.
the class StartNodeFactory method timer.
public StartNodeFactory timer(String delay, String period, String date, int timeType) {
Timer timer = new Timer();
timer.setDate(date);
timer.setDelay(delay);
timer.setPeriod(period);
timer.setTimeType(timeType);
getStartNode().setTimer(timer);
if (nodeContainer instanceof CompositeContextNode) {
ProcessAction noop = new ProcessAction();
Action action = kcontext -> {
};
noop.wire(action);
((CompositeContextNode) nodeContainer).addTimer(timer, noop);
}
return this;
}
Aggregations