org.activiti.engine.impl.history
类 HistoryManager

java.lang.Object
  继承者 org.activiti.engine.impl.persistence.AbstractManager
      继承者 org.activiti.engine.impl.history.HistoryManager
所有已实现的接口:
Session

public class HistoryManager
extends AbstractManager

Manager class that centralises recording of all history-related operations that are originated from inside the engine.

作者:
Frederik Heremans

构造方法摘要
HistoryManager()
           
 
方法摘要
 void createAttachmentComment(String taskId, String processInstanceId, String attachmentName, boolean create)
          Creates a new comment to indicate a new attachment has been created or deleted, if history is enabled.
 void createIdentityLinkComment(String taskId, String userId, String groupId, String type, boolean create)
          Creates a new comment to indicate a new IdentityLink has been created or deleted, if history is enabled.
 void createIdentityLinkComment(String taskId, String userId, String groupId, String type, boolean create, boolean forceNullUserId)
          Creates a new comment to indicate a new IdentityLink has been created or deleted, if history is enabled.
 void deleteHistoricIdentityLink(String id)
           
 HistoricActivityInstanceEntity findActivityInstance(ExecutionEntity execution)
          Finds the HistoricActivityInstanceEntity that is active in the given execution.
 boolean isHistoryEnabled()
           
 boolean isHistoryLevelAtLeast(HistoryLevel level)
           
 void recordActivityEnd(ExecutionEntity executionEntity)
          Record the end of an activitiy, if activity history is enabled.
 void recordActivityStart(ExecutionEntity executionEntity)
          Record the start of an activitiy, if activity history is enabled.
 void recordExecutionReplacedBy(ExecutionEntity execution, InterpretableExecution replacedBy)
          Replaces any open historic activityInstances' execution-id's to the id of the replaced execution, if activity history is enabled.
 void recordHistoricDetailVariableCreate(VariableInstanceEntity variable, ExecutionEntity sourceActivityExecution, boolean useActivityId)
          Record a variable has been created, if audit history is enabled.
 void recordIdentityLinkCreated(IdentityLinkEntity identityLink)
          Record the creation of a new IdentityLink, if audit history is enabled.
 void recordProcessDefinitionChange(String processInstanceId, String processDefinitionId)
          Record a change of the process-definition id of a process instance, if activity history is enabled.
 void recordProcessInstanceEnd(String processInstanceId, String deleteReason, String activityId)
          Record a process-instance ended.
 void recordProcessInstanceStart(ExecutionEntity processInstance)
          Record a process-instance started and record start-event if activity history is enabled.
 void recordStartEventEnded(String executionId, String activityId)
          Record the end of a start-task, if activity history is enabled.
 void recordSubProcessInstanceStart(ExecutionEntity parentExecution, ExecutionEntity subProcessInstance)
          Record a sub-process-instance started and alters the calledProcessinstanceId on the current active activity's historic counterpart.
 void recordTaskAssigneeChange(String taskId, String assignee)
          Record task assignee change, if audit history is enabled.
 void recordTaskAssignment(TaskEntity task)
          Record the assignment of task, if activity history is enabled.
 void recordTaskClaim(String taskId)
          record task instance claim time, if audit history is enabled
 void recordTaskCreated(TaskEntity task, ExecutionEntity execution)
          Record the creation of a task, if audit history is enabled.
 void recordTaskDefinitionKeyChange(TaskEntity task, String taskDefinitionKey)
          Record task definition key change, if audit history is enabled.
 void recordTaskDescriptionChange(String taskId, String description)
          Record task description change, if audit history is enabled.
 void recordTaskDueDateChange(String taskId, Date dueDate)
          Record task due date change, if audit history is enabled.
 void recordTaskEnd(String taskId, String deleteReason)
          Record task as ended, if audit history is enabled.
 void recordTaskExecutionIdChange(String taskId, String executionId)
          Record task execution id change, if audit history is enabled.
 void recordTaskId(TaskEntity task)
          Record the id of a the task associated with a historic activity, if activity history is enabled.
 void recordTaskNameChange(String taskId, String taskName)
          Record task name change, if audit history is enabled.
 void recordTaskOwnerChange(String taskId, String owner)
          Record task owner change, if audit history is enabled.
 void recordTaskParentTaskIdChange(String taskId, String parentTaskId)
          Record task parent task id change, if audit history is enabled.
 void recordTaskPriorityChange(String taskId, int priority)
          Record task priority change, if audit history is enabled.
 void recordVariableCreate(VariableInstanceEntity variable)
          Record a variable has been created, if audit history is enabled.
 void recordVariableUpdate(VariableInstanceEntity variable)
          Record a variable has been updated, if audit history is enabled.
 void reportFormPropertiesSubmitted(ExecutionEntity processInstance, Map<String,String> properties, String taskId)
          Report form properties submitted, if audit history is enabled.
 void updateProcessBusinessKeyInHistory(ExecutionEntity processInstance)
           
 
从类 org.activiti.engine.impl.persistence.AbstractManager 继承的方法
close, delete, flush, getAttachmentManager, getByteArrayManager, getDbSqlSession, getDeploymentManager, getGroupIdentityManager, getHistoricActivityInstanceManager, getHistoricDetailManager, getHistoricIdentityLinkEntityManager, getHistoricProcessInstanceManager, getHistoricTaskInstanceManager, getHistoricVariableInstanceManager, getHistoryManager, getIdentityInfoManager, getIdentityLinkManager, getMembershipIdentityManager, getModelManager, getProcessDefinitionManager, getProcessInstanceManager, getResourceManager, getSession, getTaskManager, getUserIdentityManager, getVariableInstanceManager, insert
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

HistoryManager

public HistoryManager()
方法详细信息

isHistoryLevelAtLeast

public boolean isHistoryLevelAtLeast(HistoryLevel level)
返回:
true, if the configured history-level is equal to OR set to a higher value than the given level.

isHistoryEnabled

public boolean isHistoryEnabled()
返回:
true, if history-level is configured to level other than "none".

recordProcessInstanceEnd

public void recordProcessInstanceEnd(String processInstanceId,
                                     String deleteReason,
                                     String activityId)
Record a process-instance ended. Updates the historic process instance if activity history is enabled.


recordProcessInstanceStart

public void recordProcessInstanceStart(ExecutionEntity processInstance)
Record a process-instance started and record start-event if activity history is enabled.


recordSubProcessInstanceStart

public void recordSubProcessInstanceStart(ExecutionEntity parentExecution,
                                          ExecutionEntity subProcessInstance)
Record a sub-process-instance started and alters the calledProcessinstanceId on the current active activity's historic counterpart. Only effective when activity history is enabled.


recordActivityStart

public void recordActivityStart(ExecutionEntity executionEntity)
Record the start of an activitiy, if activity history is enabled.


recordActivityEnd

public void recordActivityEnd(ExecutionEntity executionEntity)
Record the end of an activitiy, if activity history is enabled.


recordStartEventEnded

public void recordStartEventEnded(String executionId,
                                  String activityId)
Record the end of a start-task, if activity history is enabled.


findActivityInstance

public HistoricActivityInstanceEntity findActivityInstance(ExecutionEntity execution)
Finds the HistoricActivityInstanceEntity that is active in the given execution. Uses the DbSqlSession cache to make sure the right instance is returned, regardless of whether or not entities have already been flushed to DB.


recordExecutionReplacedBy

public void recordExecutionReplacedBy(ExecutionEntity execution,
                                      InterpretableExecution replacedBy)
Replaces any open historic activityInstances' execution-id's to the id of the replaced execution, if activity history is enabled.


recordProcessDefinitionChange

public void recordProcessDefinitionChange(String processInstanceId,
                                          String processDefinitionId)
Record a change of the process-definition id of a process instance, if activity history is enabled.


recordTaskCreated

public void recordTaskCreated(TaskEntity task,
                              ExecutionEntity execution)
Record the creation of a task, if audit history is enabled.


recordTaskAssignment

public void recordTaskAssignment(TaskEntity task)
Record the assignment of task, if activity history is enabled.


recordTaskClaim

public void recordTaskClaim(String taskId)
record task instance claim time, if audit history is enabled

参数:
taskId -

recordTaskId

public void recordTaskId(TaskEntity task)
Record the id of a the task associated with a historic activity, if activity history is enabled.


recordTaskEnd

public void recordTaskEnd(String taskId,
                          String deleteReason)
Record task as ended, if audit history is enabled.


recordTaskAssigneeChange

public void recordTaskAssigneeChange(String taskId,
                                     String assignee)
Record task assignee change, if audit history is enabled.


recordTaskOwnerChange

public void recordTaskOwnerChange(String taskId,
                                  String owner)
Record task owner change, if audit history is enabled.


recordTaskNameChange

public void recordTaskNameChange(String taskId,
                                 String taskName)
Record task name change, if audit history is enabled.


recordTaskDescriptionChange

public void recordTaskDescriptionChange(String taskId,
                                        String description)
Record task description change, if audit history is enabled.


recordTaskDueDateChange

public void recordTaskDueDateChange(String taskId,
                                    Date dueDate)
Record task due date change, if audit history is enabled.


recordTaskPriorityChange

public void recordTaskPriorityChange(String taskId,
                                     int priority)
Record task priority change, if audit history is enabled.


recordTaskParentTaskIdChange

public void recordTaskParentTaskIdChange(String taskId,
                                         String parentTaskId)
Record task parent task id change, if audit history is enabled.


recordTaskExecutionIdChange

public void recordTaskExecutionIdChange(String taskId,
                                        String executionId)
Record task execution id change, if audit history is enabled.


recordTaskDefinitionKeyChange

public void recordTaskDefinitionKeyChange(TaskEntity task,
                                          String taskDefinitionKey)
Record task definition key change, if audit history is enabled.


recordVariableCreate

public void recordVariableCreate(VariableInstanceEntity variable)
Record a variable has been created, if audit history is enabled.


recordHistoricDetailVariableCreate

public void recordHistoricDetailVariableCreate(VariableInstanceEntity variable,
                                               ExecutionEntity sourceActivityExecution,
                                               boolean useActivityId)
Record a variable has been created, if audit history is enabled.


recordVariableUpdate

public void recordVariableUpdate(VariableInstanceEntity variable)
Record a variable has been updated, if audit history is enabled.


createIdentityLinkComment

public void createIdentityLinkComment(String taskId,
                                      String userId,
                                      String groupId,
                                      String type,
                                      boolean create)
Creates a new comment to indicate a new IdentityLink has been created or deleted, if history is enabled.


createIdentityLinkComment

public void createIdentityLinkComment(String taskId,
                                      String userId,
                                      String groupId,
                                      String type,
                                      boolean create,
                                      boolean forceNullUserId)
Creates a new comment to indicate a new IdentityLink has been created or deleted, if history is enabled.


createAttachmentComment

public void createAttachmentComment(String taskId,
                                    String processInstanceId,
                                    String attachmentName,
                                    boolean create)
Creates a new comment to indicate a new attachment has been created or deleted, if history is enabled.


reportFormPropertiesSubmitted

public void reportFormPropertiesSubmitted(ExecutionEntity processInstance,
                                          Map<String,String> properties,
                                          String taskId)
Report form properties submitted, if audit history is enabled.


recordIdentityLinkCreated

public void recordIdentityLinkCreated(IdentityLinkEntity identityLink)
Record the creation of a new IdentityLink, if audit history is enabled.


deleteHistoricIdentityLink

public void deleteHistoricIdentityLink(String id)

updateProcessBusinessKeyInHistory

public void updateProcessBusinessKeyInHistory(ExecutionEntity processInstance)


Copyright © 2013 Alfresco. All rights reserved.