use of org.ow2.proactive.scheduler.common.task.flow.FlowScript in project scheduling by ow2-proactive.
the class TagTest method createLoopTask.
private InternalScriptTask createLoopTask(String name, String scriptContent, InternalTask[] dependences, String targetName, boolean block) throws InvalidScriptException {
FlowBlock fb = null;
if (block) {
fb = FlowBlock.END;
}
InternalScriptTask result = createTask(name, dependences, fb, targetName);
FlowScript loop = FlowScript.createLoopFlowScript(scriptContent, targetName);
result.setFlowScript(loop);
return result;
}
Aggregations