public interface ChangeProcessor
Modifier and Type | Method and Description |
---|---|
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.
|
WorkflowManagerImpl |
getWorkflowManager()
Auxiliary method to access autowired Spring beans from within non-spring java objects.
|
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,
com.evolveum.midpoint.xml.ns._public.common.common_3.WfConfigurationType wfConfigurationType,
Task taskFromModel,
OperationResult result)
Processes workflow-related aspect of a model operation.
|
HookOperationMode processModelInvocation(ModelContext context, com.evolveum.midpoint.xml.ns._public.common.common_3.WfConfigurationType wfConfigurationType, Task taskFromModel, OperationResult result) throws SchemaException
context
- Model context of the operation.wfConfigurationType
- taskFromModel
- Task in context of which the operation is carried out.result
- Where to put information on operation execution. @return non-null value if it processed the request;
BACKGROUND = the process was "caught" by the processor, and continues in background,
FOREGROUND = nothing was left on background, the model operation should continue in foreground,
ERROR = something wrong has happened, there's no point in continuing with this operation.
null if the request is not relevant to this processor
Actually, the FOREGROUND return value is quite unusual, because the change processor cannot
know in advance whether other processors would not want to process the invocation from the model.SchemaException
void onProcessEnd(ProcessEvent event, Job job, OperationResult result) throws SchemaException, ObjectAlreadyExistsException, ObjectNotFoundException
event
- task
- result
- Here should be stored information about whether the finalization was successful or notSchemaException
ObjectAlreadyExistsException
ObjectNotFoundException
PrismObject<? extends com.evolveum.midpoint.xml.ns.model.workflow.process_instance_state_3.ProcessInstanceState> externalizeProcessInstanceState(Map<String,Object> variables) throws JAXBException, SchemaException
variables
- internal process state represented by a mapJAXBException
SchemaException
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
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
AuditEventRecord prepareProcessInstanceAuditRecord(Map<String,Object> variables, Job job, AuditEventStage stage, OperationResult result)
variables
- job
- stage
- result
- AuditEventRecord prepareWorkItemAuditRecord(TaskEvent taskEvent, AuditEventStage stage, OperationResult result) throws WorkflowException
taskEvent
- stage
- result
- WorkflowException
WorkflowManagerImpl getWorkflowManager()
Copyright © 2015 evolveum. All rights reserved.