public abstract 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) |
PrismObject<? extends com.evolveum.midpoint.xml.ns.model.workflow.process_instance_state_3.ProcessInstanceState> |
externalizeProcessInstanceState(Map<String,Object> variables)
Externalizes internal state of the process instance.
|
PrismObject<? extends com.evolveum.midpoint.xml.ns.model.workflow.common_forms_3.WorkItemContents> |
externalizeWorkItemContents(org.activiti.engine.task.Task task,
Map<String,Object> processInstanceVariables,
OperationResult result)
Prepares a displayable work item contents.
|
PrimaryChangeAspect |
findPrimaryChangeAspect(String name) |
List<PrimaryChangeAspect> |
getChangeAspects() |
void |
init() |
void |
onProcessEnd(ProcessEvent event,
Job job,
OperationResult result)
Handles an event from WfMS that indicates finishing of the workflow process instance.
|
AuditEventRecord |
prepareProcessInstanceAuditRecord(Map<String,Object> variables,
Job job,
AuditEventStage stage,
OperationResult result)
Prepares a process instance-related audit record.
|
AuditEventRecord |
prepareWorkItemAuditRecord(TaskEvent taskEvent,
AuditEventStage stage,
OperationResult result)
Prepares a work item-related audit record.
|
HookOperationMode |
processModelInvocation(ModelContext context,
Task taskFromModel,
OperationResult result)
Processes workflow-related aspect of a model operation.
|
void |
setChangeAspects(List<PrimaryChangeAspect> changeAspects) |
getBeanFactory, getBeanName, getProcessorConfiguration, getWorkflowManager, isEnabled, setBeanFactory, setBeanName, setEnabled, setProcessorConfiguration
public static final String UNKNOWN_OID
@PostConstruct public void init()
public void setChangeAspects(List<PrimaryChangeAspect> changeAspects)
public HookOperationMode processModelInvocation(ModelContext context, Task taskFromModel, OperationResult result) throws SchemaException
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
public LensContext contextCopyWithNoDelta(ModelContext context)
public void onProcessEnd(ProcessEvent event, Job job, OperationResult result) throws SchemaException, ObjectAlreadyExistsException, ObjectNotFoundException
ChangeProcessor
result
- Here should be stored information about whether the finalization was successful or notSchemaException
ObjectAlreadyExistsException
ObjectNotFoundException
public PrismObject<? extends com.evolveum.midpoint.xml.ns.model.workflow.process_instance_state_3.ProcessInstanceState> externalizeProcessInstanceState(Map<String,Object> variables) throws JAXBException, SchemaException
ChangeProcessor
variables
- internal process state represented by a mapJAXBException
SchemaException
public PrismObject<? extends com.evolveum.midpoint.xml.ns.model.workflow.common_forms_3.WorkItemContents> externalizeWorkItemContents(org.activiti.engine.task.Task task, Map<String,Object> processInstanceVariables, OperationResult result) throws JAXBException, ObjectNotFoundException, SchemaException
ChangeProcessor
task
- activiti task corresponding to the work item for which the contents is to be preparedprocessInstanceVariables
- variables of the process instance of which this task is a partresult
- here the method stores its resultJAXBException
ObjectNotFoundException
SchemaException
public AuditEventRecord prepareProcessInstanceAuditRecord(Map<String,Object> variables, Job job, AuditEventStage stage, OperationResult result)
ChangeProcessor
public AuditEventRecord prepareWorkItemAuditRecord(TaskEvent taskEvent, AuditEventStage stage, OperationResult result) throws WorkflowException
ChangeProcessor
WorkflowException
public List<PrimaryChangeAspect> getChangeAspects()
public PrimaryChangeAspect findPrimaryChangeAspect(String name)
Copyright © 2014 evolveum. All rights reserved.