public interface PrimaryChangeAspect
Modifier and Type | Method and Description |
---|---|
com.evolveum.midpoint.xml.ns.model.workflow.process_instance_state_3.ProcessSpecificState |
externalizeProcessInstanceState(Map<String,Object> variables)
Externalizes internal state of the process instance.
|
List<com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType> |
prepareApprovedBy(ProcessEvent event,
PcpJob job,
OperationResult result)
Returns a list of users who have approved the particular request.
|
List<ObjectDelta<Objectable>> |
prepareDeltaOut(ProcessEvent event,
PcpJob job,
OperationResult result)
On process instance end, prepares deltaOut based in deltaIn and information gathered during approval process.
|
List<PcpChildJobCreationInstruction> |
prepareJobCreationInstructions(ModelContext<?> modelContext,
ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> change,
Task taskFromModel,
OperationResult result)
Examines the change and determines whether there are pieces that require (change type specific)
approval, for example, if there are roles added.
|
PrismObject<? extends com.evolveum.midpoint.xml.ns.model.workflow.common_forms_3.QuestionFormType> |
prepareQuestionForm(org.activiti.engine.task.Task task,
Map<String,Object> variables,
OperationResult result)
Returns a PrismObject containing information about a work item to be processed by the user.
|
PrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
prepareRelatedObject(org.activiti.engine.task.Task task,
Map<String,Object> variables,
OperationResult result)
Returns a object related to the work item at hand.
|
List<PcpChildJobCreationInstruction> prepareJobCreationInstructions(ModelContext<?> modelContext, ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> change, Task taskFromModel, OperationResult result) throws SchemaException
modelContext
- Original model context (e.g. to be able to get information about whole context of the operation)change
- Change to be examined and modified by implementation of this methodtaskFromModel
- General context of the operation - the method should not modify the task.result
- Operation result - the method should report any errors here (TODO what about creating subresults?)SchemaException
JobCreationInstruction
List<ObjectDelta<Objectable>> prepareDeltaOut(ProcessEvent event, PcpJob job, OperationResult result) throws SchemaException
event
- Current ProcessEvent providing information on what happened within wf process instance.job
- Reference to a job (pair of process instance and a task) in which the event happened.result
- Operation result - the method should report any errors here.SchemaException
- if there is any problem with the schema.List<com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType> prepareApprovedBy(ProcessEvent event, PcpJob job, OperationResult result)
event
- Current ProcessEvent providing information on what happened within wf process instance.job
- Reference to a job (pair of process instance and a task) in which the event happened.result
- Operation result - the method should report any errors here.PrismObject<? extends com.evolveum.midpoint.xml.ns.model.workflow.common_forms_3.QuestionFormType> prepareQuestionForm(org.activiti.engine.task.Task task, Map<String,Object> variables, OperationResult result) throws SchemaException, ObjectNotFoundException
task
- activiti task corresponding to the work item that is being displayedvariables
- process instance variables at the point of invoking the work item (activiti task)result
- operation result where the operation status should be reportedSchemaException
- if any of key objects cannot be retrieved because of schema exceptionObjectNotFoundException
- if any of key objects cannot be foundPrismObject<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> prepareRelatedObject(org.activiti.engine.task.Task task, Map<String,Object> variables, OperationResult result) throws SchemaException, ObjectNotFoundException
task
- activiti task corresponding to the work item that is being displayedvariables
- process instance variables at the point of invoking the work item (activiti task)result
- operation result where the operation status should be reportedSchemaException
- if the object cannot be retrieved because of schema exceptionObjectNotFoundException
- if the object cannot be foundcom.evolveum.midpoint.xml.ns.model.workflow.process_instance_state_3.ProcessSpecificState externalizeProcessInstanceState(Map<String,Object> variables)
variables
- internal process state represented by a mapCopyright © 2015 evolveum. All rights reserved.