@Component public class BaseModelInvocationProcessingHelper extends Object
Modifier and Type | Field and Description |
---|---|
protected WfTaskController |
wfTaskController |
Constructor and Description |
---|
BaseModelInvocationProcessingHelper() |
Modifier and Type | Method and Description |
---|---|
WfTaskCreationInstruction |
createInstructionForRoot(ChangeProcessor changeProcessor,
ModelContext modelContext,
Task taskFromModel,
ModelContext contextForRoot,
OperationResult result)
Creates a root job creation instruction.
|
WfTaskCreationInstruction |
createInstructionForRoot(ChangeProcessor changeProcessor,
ModelContext modelContext,
Task taskFromModel,
OperationResult result)
More specific version of the previous method, having contextForRoot equals to modelContext.
|
ObjectTreeDeltas |
extractTreeDeltasFromModelContext(ModelContext<?> modelContext) |
PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> |
getRequester(Task task,
OperationResult result) |
void |
logJobsBeforeStart(WfTask rootWfTask,
OperationResult result) |
WfTask |
submitRootTask(WfTaskCreationInstruction rootInstruction,
Task taskFromModel,
com.evolveum.midpoint.xml.ns._public.common.common_3.WfConfigurationType wfConfigurationType,
OperationResult result)
Creates a root job, based on provided job start instruction.
|
@Autowired protected WfTaskController wfTaskController
public WfTaskCreationInstruction createInstructionForRoot(ChangeProcessor changeProcessor, ModelContext modelContext, Task taskFromModel, ModelContext contextForRoot, OperationResult result) throws SchemaException
changeProcessor
- reference to the change processor responsible for the whole operationmodelContext
- model context in which the original model operation is carried outtaskFromModel
- task in which the original model operation is carried outcontextForRoot
- model context that should be put into the root task (might be different from the modelContext)SchemaException
public WfTaskCreationInstruction createInstructionForRoot(ChangeProcessor changeProcessor, ModelContext modelContext, Task taskFromModel, OperationResult result) throws SchemaException
SchemaException
public WfTask submitRootTask(WfTaskCreationInstruction rootInstruction, Task taskFromModel, com.evolveum.midpoint.xml.ns._public.common.common_3.WfConfigurationType wfConfigurationType, OperationResult result) throws SchemaException, ObjectNotFoundException, ObjectAlreadyExistsException
rootInstruction
- instruction to usetaskFromModel
- (potential) parent taskwfConfigurationType
- result
- SchemaException
ObjectNotFoundException
ObjectAlreadyExistsException
public void logJobsBeforeStart(WfTask rootWfTask, OperationResult result) throws SchemaException, ConfigurationException, ObjectNotFoundException, CommunicationException
public PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.UserType> getRequester(Task task, OperationResult result)
public ObjectTreeDeltas extractTreeDeltasFromModelContext(ModelContext<?> modelContext)
Copyright © 2016 evolveum. All rights reserved.