@Component public class AddRoleAssignmentAspect extends BasePrimaryChangeAspect
changeProcessor, primaryChangeAspectHelper, processInterfaceFinder, repositoryService, wfTaskUtil
Constructor and Description |
---|
AddRoleAssignmentAspect() |
Modifier and Type | Method and Description |
---|---|
static String |
formatTimeIntervalBrief(com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType assignment) |
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.
|
externalizeProcessInstanceState, getChangeProcessor, prepareApprovedBy, prepareDeltaOut
public List<PcpChildJobCreationInstruction> prepareJobCreationInstructions(ModelContext<?> modelContext, ObjectDelta<? extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> change, Task taskFromModel, OperationResult result) throws SchemaException
PrimaryChangeAspect
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
public 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
PrimaryChangeAspect
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 foundpublic static String formatTimeIntervalBrief(com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentType assignment)
public 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) throws SchemaException, ObjectNotFoundException
PrimaryChangeAspect
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 foundCopyright © 2015 evolveum. All rights reserved.