@Component public class PrimaryChangeProcessor extends BaseChangeProcessor
Modifier and Type | Class and Description |
---|---|
static class |
PrimaryChangeProcessor.ExecutionMode |
Modifier and Type | Field and Description |
---|---|
static String |
UNKNOWN_OID |
Constructor and Description |
---|
PrimaryChangeProcessor() |
Modifier and Type | Method and Description |
---|---|
LensContext |
contextCopyWithNoDelta(ModelContext context) |
PrimaryChangeAspect |
findPrimaryChangeAspect(String name) |
Collection<PrimaryChangeAspect> |
getAllChangeAspects() |
void |
init() |
void |
onProcessEnd(ProcessEvent event,
WfTask wfTask,
OperationResult result)
Handles an event from WfMS that indicates finishing of the workflow process instance.
|
AuditEventRecord |
prepareProcessInstanceAuditRecord(WfTask wfTask,
AuditEventStage stage,
Map<String,Object> variables,
OperationResult result)
Prepares a process instance-related audit record.
|
AuditEventRecord |
prepareWorkItemAuditRecord(com.evolveum.midpoint.xml.ns._public.common.common_3.WorkItemType workItem,
WfTask wfTask,
TaskEvent taskEvent,
AuditEventStage stage,
OperationResult result)
Prepares a work item-related audit record.
|
HookOperationMode |
processModelInvocation(ModelContext context,
com.evolveum.midpoint.xml.ns._public.common.common_3.WfConfigurationType wfConfigurationType,
Task taskFromModel,
OperationResult result)
Processes workflow-related aspect of a model operation.
|
void |
registerChangeAspect(PrimaryChangeAspect changeAspect) |
getBeanFactory, getBeanName, getMiscDataUtil, getPrismContext, getProcessorConfiguration, setBeanFactory, setBeanName, setEnabled, setProcessorConfiguration
public static final String UNKNOWN_OID
@PostConstruct public void init()
public HookOperationMode processModelInvocation(ModelContext context, com.evolveum.midpoint.xml.ns._public.common.common_3.WfConfigurationType wfConfigurationType, Task taskFromModel, OperationResult result) throws SchemaException, ObjectNotFoundException
ChangeProcessor
context
- Model context of the operation.taskFromModel
- Task in context of which the operation is carried out.result
- Where to put information on operation execution.SchemaException
ObjectNotFoundException
public LensContext contextCopyWithNoDelta(ModelContext context)
public void onProcessEnd(ProcessEvent event, WfTask wfTask, OperationResult result) throws SchemaException, ObjectAlreadyExistsException, ObjectNotFoundException
ChangeProcessor
result
- Here should be stored information about whether the finalization was successful or notSchemaException
ObjectAlreadyExistsException
ObjectNotFoundException
public AuditEventRecord prepareProcessInstanceAuditRecord(WfTask wfTask, AuditEventStage stage, Map<String,Object> variables, OperationResult result)
ChangeProcessor
public AuditEventRecord prepareWorkItemAuditRecord(com.evolveum.midpoint.xml.ns._public.common.common_3.WorkItemType workItem, WfTask wfTask, TaskEvent taskEvent, AuditEventStage stage, OperationResult result) throws WorkflowException
ChangeProcessor
WorkflowException
public Collection<PrimaryChangeAspect> getAllChangeAspects()
public PrimaryChangeAspect findPrimaryChangeAspect(String name)
public void registerChangeAspect(PrimaryChangeAspect changeAspect)
Copyright © 2016 evolveum. All rights reserved.