@PublicAPI public class TaskFlowJob extends Job
addTask(Task)
in order to fill the job with your own tasks.bucketName, description, globalGenericInformation, globalSpace, globalVariables, inputSpace, JOB_DDL, JOB_EXEC_TIME, label, name, outputSpace, priority, projectName, startAt, submissionMode, unresolvedVariables, userSpace, variables, visualization, workflowTags
DEFAULT_TASK_RETRY_DELAY, GENERIC_INFO_START_AT_KEY, genericInformation, maxNumberOfExecution, onTaskError, restartTaskOnError, taskRetryDelay, unresolvedGenericInformation
Constructor and Description |
---|
TaskFlowJob()
ProActive Empty Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addTask(Task task)
Add a task to this task flow job.
The task name must not be null as it is not by default. The task name must also be different for each task as it is used to identify each task result. If not set, the task name will be a generated one : 'task_X' (where X is the Xth added task number) |
void |
addTasks(List<Task> tasks)
Add a list of tasks to this task flow job.
|
String |
display() |
Set<Task> |
findRootTasks()
Find root tasks for this workflow
Root tasks are tasks without parent and not targets of a If, Else or Continuation branch
|
Set<Task> |
findTerminalTasks()
Find terminal tasks for this workflow
Terminal tasks are tasks without children and not source of a If or Else branch
|
JobId |
getId()
To get the id
|
Task |
getTask(String name)
Get the task corresponding to the given name.
|
ArrayList<Task> |
getTasks()
To get the list of tasks.
|
JobType |
getType()
To get the type of this job
|
getBucketName, getDescription, getGlobalGenericInformation, getGlobalSpace, getGlobalVariables, getInputSpace, getJobContent, getJobDeadline, getJobExpectedExecutionTime, getLabel, getName, getOutputSpace, getParentId, getPriority, getProjectName, getStartAt, getSubmissionMode, getUnresolvedVariables, getUserSpace, getVariables, getVariablesAsReplacementMap, getVisualization, getWorkflowTags, setBucketName, setDescription, setGlobalGenericInformation, setGlobalSpace, setGlobalVariables, setInputSpace, setJobContent, setLabel, setName, setOutputSpace, setParentId, setPriority, setProjectName, setStartAt, setSubmissionMode, setUnresolvedVariables, setUserSpace, setVariables, setVisualization, setWorkflowTags, toString, verifyVariableMap
addGenericInformation, addGenericInformations, applyReplacementsOnGenericInformation, getGenericInformation, getMaxNumberOfExecution, getMaxNumberOfExecutionProperty, getOnTaskErrorProperty, getRestartTaskOnError, getRestartTaskOnErrorProperty, getTaskRetryDelay, getTaskRetryDelayProperty, getUnresolvedGenericInformation, setGenericInformation, setMaxNumberOfExecution, setOnTaskError, setRestartTaskOnError, setTaskRetryDelay, setUnresolvedGenericInformation
public JobType getType()
Job
getType
in class Job
Job.getType()
public void addTask(Task task) throws UserException
task
- the task to add.UserException
- if a problem occurred while the task is being added.public void addTasks(List<Task> tasks) throws UserException
tasks
- the list of tasks to add.UserException
- if a problem occurred while the task is being added.public Set<Task> findTerminalTasks()
public Set<Task> findRootTasks()
public Task getTask(String name)
name
- the name of the task to look for.public JobId getId()
Job
getId
in class Job
Job.getId()