com.evolveum.midpoint.wf.processes.addroles
Class AddRolesProcessWrapper

java.lang.Object
  extended by com.evolveum.midpoint.wf.processes.addroles.AddRolesProcessWrapper
All Implemented Interfaces:
ProcessWrapper

@Component
public class AddRolesProcessWrapper
extends java.lang.Object
implements ProcessWrapper

Author:
mederly

Field Summary
static java.lang.String ADD_ROLE_PROCESS
           
static java.lang.String ALL_DECISIONS
           
static java.lang.String APPROVER_MAIL_ADDRESS
           
static java.lang.String ASSIGNMENT_TO_APPROVE
           
static java.lang.String ASSIGNMENTS_APPROVALS
           
static java.lang.String ASSIGNMENTS_TO_APPROVE
           
static java.lang.String DECISION_LIST
           
static java.lang.String FORM_FIELD_COMMENT
           
static java.lang.String LEVEL
           
static java.lang.String LOOP_APPROVERS_IN_LEVEL_STOP
           
static java.lang.String LOOP_LEVELS_STOP
           
static java.lang.String ROLE
           
static java.lang.String USER_NAME
           
 
Constructor Summary
AddRolesProcessWrapper()
           
 
Method Summary
 boolean finishProcess(ModelContext context, ProcessEvent event, Task task, OperationResult result)
          Does a process-specific processing of wf result (i.e.
static java.lang.String formatTimeIntervalBrief(AssignmentType assignment)
           
 java.lang.String getProcessSpecificDetails(org.activiti.engine.history.HistoricProcessInstance instance, java.util.Map<java.lang.String,java.lang.Object> vars)
           
 java.lang.String getProcessSpecificDetails(org.activiti.engine.runtime.ProcessInstance instance, java.util.Map<java.lang.String,java.lang.Object> vars, java.util.List<org.activiti.engine.task.Task> tasks)
           
 java.lang.String getProcessSpecificDetailsForTask(java.lang.String instanceId, java.util.Map<java.lang.String,java.lang.Object> vars)
           
 void register()
           
 StartProcessInstruction startProcessIfNeeded(ModelContext context, Task task, OperationResult result)
          Determines whether to start a workflow process (and, if so, with what properties).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ASSIGNMENTS_TO_APPROVE

public static final java.lang.String ASSIGNMENTS_TO_APPROVE
See Also:
Constant Field Values

ASSIGNMENTS_APPROVALS

public static final java.lang.String ASSIGNMENTS_APPROVALS
See Also:
Constant Field Values

ALL_DECISIONS

public static final java.lang.String ALL_DECISIONS
See Also:
Constant Field Values

ASSIGNMENT_TO_APPROVE

public static final java.lang.String ASSIGNMENT_TO_APPROVE
See Also:
Constant Field Values

USER_NAME

public static final java.lang.String USER_NAME
See Also:
Constant Field Values

DECISION_LIST

public static final java.lang.String DECISION_LIST
See Also:
Constant Field Values

ADD_ROLE_PROCESS

public static final java.lang.String ADD_ROLE_PROCESS
See Also:
Constant Field Values

LOOP_LEVELS_STOP

public static final java.lang.String LOOP_LEVELS_STOP
See Also:
Constant Field Values

LOOP_APPROVERS_IN_LEVEL_STOP

public static final java.lang.String LOOP_APPROVERS_IN_LEVEL_STOP
See Also:
Constant Field Values

ROLE

public static final java.lang.String ROLE
See Also:
Constant Field Values

APPROVER_MAIL_ADDRESS

public static final java.lang.String APPROVER_MAIL_ADDRESS
See Also:
Constant Field Values

FORM_FIELD_COMMENT

public static final java.lang.String FORM_FIELD_COMMENT
See Also:
Constant Field Values

LEVEL

public static final java.lang.String LEVEL
See Also:
Constant Field Values
Constructor Detail

AddRolesProcessWrapper

public AddRolesProcessWrapper()
Method Detail

register

@PostConstruct
public void register()

startProcessIfNeeded

public StartProcessInstruction startProcessIfNeeded(ModelContext context,
                                                    Task task,
                                                    OperationResult result)
Description copied from interface: ProcessWrapper
Determines whether to start a workflow process (and, if so, with what properties).

Specified by:
startProcessIfNeeded in interface ProcessWrapper
Parameters:
context - Context of the model operation.
task - Enclosing task to which results of the process will be stored. (todo ????????)
Returns:
Instruction to start the process, or null if no process should be started.

finishProcess

public boolean finishProcess(ModelContext context,
                             ProcessEvent event,
                             Task task,
                             OperationResult result)
Description copied from interface: ProcessWrapper
Does a process-specific processing of wf result (i.e. of the final message from workflow).

Specified by:
finishProcess in interface ProcessWrapper
Parameters:
context - Current context of the model operation. (todo ??????????)
event - Message from the WfMS
task - Enclosing task to which results of the process were (and are) written. (todo ?????????)
Returns:
TODO xxxxxx

getProcessSpecificDetailsForTask

public java.lang.String getProcessSpecificDetailsForTask(java.lang.String instanceId,
                                                         java.util.Map<java.lang.String,java.lang.Object> vars)
Specified by:
getProcessSpecificDetailsForTask in interface ProcessWrapper

getProcessSpecificDetails

public java.lang.String getProcessSpecificDetails(org.activiti.engine.history.HistoricProcessInstance instance,
                                                  java.util.Map<java.lang.String,java.lang.Object> vars)
Specified by:
getProcessSpecificDetails in interface ProcessWrapper

getProcessSpecificDetails

public java.lang.String getProcessSpecificDetails(org.activiti.engine.runtime.ProcessInstance instance,
                                                  java.util.Map<java.lang.String,java.lang.Object> vars,
                                                  java.util.List<org.activiti.engine.task.Task> tasks)
Specified by:
getProcessSpecificDetails in interface ProcessWrapper

formatTimeIntervalBrief

public static java.lang.String formatTimeIntervalBrief(AssignmentType assignment)


Copyright © 2012 evolveum. All Rights Reserved.