@Component public class JobController extends Object
Constructor and Description |
---|
JobController() |
Modifier and Type | Method and Description |
---|---|
void |
addDependency(Job executesFirst,
Job executesSecond)
Beware, in order to make the change permanent, it is necessary to call commitChanges on
"executesFirst".
|
Job |
createJob(JobCreationInstruction instruction,
Job parentJob,
OperationResult result)
Creates a job, just as prescribed by the job creation instruction.
|
Job |
createJob(JobCreationInstruction instruction,
Task parentTask,
OperationResult result)
As before, but this time we know only the parent task (not a job).
|
WfTaskUtil |
getWfTaskUtil() |
void |
processWorkflowMessage(ActivitiToMidPointMessage message,
Task task,
boolean asynchronous,
OperationResult result)
Processes a message got from workflow engine - either synchronously (while waiting for
replies after sending - i.e.
|
Job |
recreateChildJob(Task subtask,
Job parentJob)
Re-creates a child job, knowing the task and the parent job.
|
Job |
recreateJob(Task task)
Re-creates a job, based on existing task information.
|
Job |
recreateRootJob(Task task)
Re-creates a root job, based on existing task information.
|
void |
registerProcessListener(ProcessListener processListener) |
void |
registerWorkItemListener(WorkItemListener workItemListener) |
void |
resumeTask(Job job,
OperationResult result) |
void |
unpauseTask(Job job,
OperationResult result) |
public Job createJob(JobCreationInstruction instruction, Job parentJob, OperationResult result) throws SchemaException, ObjectNotFoundException
instruction
- the job creation instructionparentJob
- the job that will be the parent of newly created one; it may be nullSchemaException
ObjectNotFoundException
public Job createJob(JobCreationInstruction instruction, Task parentTask, 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 nullSchemaException
ObjectNotFoundException
public Job recreateJob(Task task) throws SchemaException, ObjectNotFoundException
task
- a task from task-processInstance pairSchemaException
ObjectNotFoundException
public Job recreateChildJob(Task subtask, Job parentJob)
subtask
- a task from task-processInstance pairparentJob
- the parent jobpublic Job recreateRootJob(Task task)
public void addDependency(Job executesFirst, Job executesSecond)
executesFirst
- executesSecond
- public void resumeTask(Job job, OperationResult result) throws SchemaException, ObjectNotFoundException
public void unpauseTask(Job job, OperationResult result) throws SchemaException, ObjectNotFoundException
public void processWorkflowMessage(ActivitiToMidPointMessage message, Task task, boolean asynchronous, OperationResult result) throws SchemaException, ObjectNotFoundException, WorkflowException, ObjectAlreadyExistsException, JAXBException
message
- an event got from workflow enginetask
- asynchronous
- result
- Exception
SchemaException
ObjectNotFoundException
WorkflowException
ObjectAlreadyExistsException
JAXBException
public void registerProcessListener(ProcessListener processListener)
public void registerWorkItemListener(WorkItemListener workItemListener)
public WfTaskUtil getWfTaskUtil()
Copyright © 2014 evolveum. All rights reserved.