com.massimo.tools.scriptrunner.control
Class SerialTask
java.lang.Object
com.massimo.tools.scriptrunner.AbstractTask
com.massimo.tools.scriptrunner.control.AbstractCompoundTask
com.massimo.tools.scriptrunner.control.SerialTask
- All Implemented Interfaces:
- Task
public class SerialTask
- extends AbstractCompoundTask
SerialTask will run all child Tasks in series.
Methods inherited from class com.massimo.tools.scriptrunner.AbstractTask |
getBooleanProperty, getCurrentWorkingDirectory, getDefinition, getIntProperty, getName, getParent, getProperties, getStartProcessingRow, getText, getType, isIgnoreableError, isIgnoreableError, isInterrupted, isLogProgress, postProcess, preProcess, process, resultCodeToString, substituteParameters, toString, validate, validateConnections, validateParameters |
SerialTask
public SerialTask(Task parent,
String type,
Element definition,
Map<String,String> parentProperties)
- Parameters:
parent
- A parent Task, or null for the root Task.type
- The type of task, e.g. SQL, Print, Serialdefinition
- Task to execute, including new connection properties.parentProperties
-
getLogger
protected org.apache.log4j.Logger getLogger()
-
- Specified by:
getLogger
in class AbstractTask
- Returns:
- Class logger
processCompound
protected int processCompound(ExecutionContext context,
Elements tasks)
throws Exception
- Execute all child Tasks in series, failing immediately if any fails.
- Specified by:
processCompound
in class AbstractCompoundTask
- Parameters:
context
- tasks
- A list of Task definition Elements
- Returns:
- The result of running all tasks
- Throws:
Exception