@Component public class WfTaskController extends Object
Modifier and Type | Field and Description |
---|---|
static long |
TASK_START_DELAY |
Constructor and Description |
---|
WfTaskController() |
Modifier and Type | Method and Description |
---|---|
void |
addDependency(WfTask executesFirst,
WfTask executesSecond)
Beware, in order to make the change permanent, it is necessary to call commitChanges on
"executesFirst".
|
MiscDataUtil |
getMiscDataUtil() |
PrismContext |
getPrismContext() |
TaskManager |
getTaskManager() |
WfConfiguration |
getWfConfiguration() |
WfTaskUtil |
getWfTaskUtil() |
void |
onProcessEvent(ProcessEvent event,
Task task,
OperationResult result) |
void |
onTaskEvent(com.evolveum.midpoint.xml.ns._public.common.common_3.WorkItemType workItem,
TaskEvent taskEvent,
OperationResult result) |
WfTask |
recreateChildWfTask(Task subtask,
WfTask parentWfTask)
Re-creates a child job, knowing the task and the parent job.
|
WfTask |
recreateRootWfTask(Task task)
Re-creates a root job, based on existing task information.
|
WfTask |
recreateWfTask(Task task)
Re-creates a job, based on existing task information.
|
WfTask |
recreateWfTask(Task task,
ChangeProcessor changeProcessor) |
void |
registerProcessListener(ProcessListener processListener) |
void |
registerWorkItemListener(WorkItemListener workItemListener) |
void |
resumeTask(WfTask wfTask,
OperationResult result) |
WfTask |
submitWfTask(WfTaskCreationInstruction instruction,
Task parentTask,
com.evolveum.midpoint.xml.ns._public.common.common_3.WfConfigurationType wfConfigurationType,
OperationResult result)
As before, but this time we know only the parent task (not a job).
|
WfTask |
submitWfTask(WfTaskCreationInstruction instruction,
WfTask parentWfTask,
com.evolveum.midpoint.xml.ns._public.common.common_3.WfConfigurationType wfConfigurationType,
OperationResult result)
Creates a background task, just as prescribed by the task creation instruction.
|
void |
unpauseTask(WfTask wfTask,
OperationResult result) |
public static final long TASK_START_DELAY
public WfTask submitWfTask(WfTaskCreationInstruction instruction, WfTask parentWfTask, com.evolveum.midpoint.xml.ns._public.common.common_3.WfConfigurationType wfConfigurationType, OperationResult result) throws SchemaException, ObjectNotFoundException
instruction
- the job creation instructionparentWfTask
- the job that will be the parent of newly created one; it may be nullwfConfigurationType
- SchemaException
ObjectNotFoundException
public WfTask submitWfTask(WfTaskCreationInstruction instruction, Task parentTask, com.evolveum.midpoint.xml.ns._public.common.common_3.WfConfigurationType wfConfigurationType, OperationResult result) throws SchemaException, ObjectNotFoundException
instruction
- the job creation instructionparentTask
- the task that will be the parent of the task of newly created job; it may be nullwfConfigurationType
- SchemaException
ObjectNotFoundException
public WfTask recreateWfTask(Task task)
task
- a task from task-processInstance pairpublic WfTask recreateWfTask(Task task, ChangeProcessor changeProcessor)
public WfTask recreateChildWfTask(Task subtask, WfTask parentWfTask)
subtask
- a task from task-processInstance pairparentWfTask
- the parent jobpublic WfTask recreateRootWfTask(Task task)
public void addDependency(WfTask executesFirst, WfTask executesSecond)
executesFirst
- executesSecond
- public void resumeTask(WfTask wfTask, OperationResult result) throws SchemaException, ObjectNotFoundException
public void unpauseTask(WfTask wfTask, OperationResult result) throws SchemaException, ObjectNotFoundException
public void onProcessEvent(ProcessEvent event, Task task, OperationResult result) throws ObjectAlreadyExistsException, ObjectNotFoundException, SchemaException
public void onTaskEvent(com.evolveum.midpoint.xml.ns._public.common.common_3.WorkItemType workItem, TaskEvent taskEvent, OperationResult result) throws WorkflowException, SchemaException
WorkflowException
SchemaException
public void registerProcessListener(ProcessListener processListener)
public void registerWorkItemListener(WorkItemListener workItemListener)
public WfTaskUtil getWfTaskUtil()
public MiscDataUtil getMiscDataUtil()
public PrismContext getPrismContext()
public TaskManager getTaskManager()
public WfConfiguration getWfConfiguration()
Copyright © 2016 evolveum. All rights reserved.