public interface HistoryManager extends Session
Modifier and Type | Method and Description |
---|---|
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 |
createProcessInstanceIdentityLinkComment(String processInstanceId,
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 |
createProcessInstanceIdentityLinkComment(String processInstanceId,
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 |
recordProcessInstanceNameChange(String processInstanceId,
String newName)
Record a process-instance name change.
|
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 |
recordTaskCategoryChange(String taskId,
String category)
Record task category change, if audit 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 |
recordTaskFormKeyChange(String taskId,
String formKey)
Record task form key 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 |
recordVariableRemoved(VariableInstanceEntity variable)
Record a variable has been deleted, 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) |
boolean isHistoryLevelAtLeast(HistoryLevel level)
boolean isHistoryEnabled()
void recordProcessInstanceEnd(String processInstanceId, String deleteReason, String activityId)
void recordProcessInstanceStart(ExecutionEntity processInstance)
void recordProcessInstanceNameChange(String processInstanceId, String newName)
void recordSubProcessInstanceStart(ExecutionEntity parentExecution, ExecutionEntity subProcessInstance)
void recordActivityStart(ExecutionEntity executionEntity)
void recordActivityEnd(ExecutionEntity executionEntity)
void recordStartEventEnded(String executionId, String activityId)
HistoricActivityInstanceEntity findActivityInstance(ExecutionEntity execution)
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.void recordExecutionReplacedBy(ExecutionEntity execution, InterpretableExecution replacedBy)
void recordProcessDefinitionChange(String processInstanceId, String processDefinitionId)
void recordTaskCreated(TaskEntity task, ExecutionEntity execution)
void recordTaskAssignment(TaskEntity task)
void recordTaskClaim(String taskId)
taskId
- void recordTaskId(TaskEntity task)
void recordTaskEnd(String taskId, String deleteReason)
void recordTaskAssigneeChange(String taskId, String assignee)
void recordTaskOwnerChange(String taskId, String owner)
void recordTaskNameChange(String taskId, String taskName)
void recordTaskDescriptionChange(String taskId, String description)
void recordTaskDueDateChange(String taskId, Date dueDate)
void recordTaskPriorityChange(String taskId, int priority)
void recordTaskCategoryChange(String taskId, String category)
void recordTaskFormKeyChange(String taskId, String formKey)
void recordTaskParentTaskIdChange(String taskId, String parentTaskId)
void recordTaskExecutionIdChange(String taskId, String executionId)
void recordTaskDefinitionKeyChange(TaskEntity task, String taskDefinitionKey)
void recordVariableCreate(VariableInstanceEntity variable)
void recordHistoricDetailVariableCreate(VariableInstanceEntity variable, ExecutionEntity sourceActivityExecution, boolean useActivityId)
void recordVariableUpdate(VariableInstanceEntity variable)
void recordVariableRemoved(VariableInstanceEntity variable)
void createIdentityLinkComment(String taskId, String userId, String groupId, String type, boolean create)
IdentityLink
has been created or deleted,
if history is enabled.void createIdentityLinkComment(String taskId, String userId, String groupId, String type, boolean create, boolean forceNullUserId)
IdentityLink
has been created or deleted,
if history is enabled.void createProcessInstanceIdentityLinkComment(String processInstanceId, String userId, String groupId, String type, boolean create)
IdentityLink
has been created or deleted,
if history is enabled.void createProcessInstanceIdentityLinkComment(String processInstanceId, String userId, String groupId, String type, boolean create, boolean forceNullUserId)
IdentityLink
has been created or deleted,
if history is enabled.void createAttachmentComment(String taskId, String processInstanceId, String attachmentName, boolean create)
void reportFormPropertiesSubmitted(ExecutionEntity processInstance, Map<String,String> properties, String taskId)
void recordIdentityLinkCreated(IdentityLinkEntity identityLink)
IdentityLink
, if audit history is enabled.void deleteHistoricIdentityLink(String id)
void updateProcessBusinessKeyInHistory(ExecutionEntity processInstance)
Copyright © 2016 Alfresco. All rights reserved.