use of org.camunda.bpm.engine.impl.oplog.UserOperationLogContextEntryBuilder in project camunda-bpm-platform by camunda.
the class UserOperationLogManager method logDecisionInstanceOperation.
public void logDecisionInstanceOperation(String operation, List<PropertyChange> propertyChanges) {
if (isUserOperationLogEnabled()) {
UserOperationLogContext context = new UserOperationLogContext();
UserOperationLogContextEntryBuilder entryBuilder = UserOperationLogContextEntryBuilder.entry(operation, EntityTypes.DECISION_INSTANCE).propertyChanges(propertyChanges);
context.addEntry(entryBuilder.create());
fireUserOperationLog(context);
}
}
use of org.camunda.bpm.engine.impl.oplog.UserOperationLogContextEntryBuilder in project camunda-bpm-platform by camunda.
the class UserOperationLogManager method logAttachmentOperation.
public void logAttachmentOperation(String operation, TaskEntity task, PropertyChange propertyChange) {
if (isUserOperationLogEnabled()) {
UserOperationLogContext context = new UserOperationLogContext();
UserOperationLogContextEntryBuilder entryBuilder = UserOperationLogContextEntryBuilder.entry(operation, EntityTypes.ATTACHMENT).inContextOf(task, Arrays.asList(propertyChange));
context.addEntry(entryBuilder.create());
fireUserOperationLog(context);
}
}
use of org.camunda.bpm.engine.impl.oplog.UserOperationLogContextEntryBuilder in project camunda-bpm-platform by camunda.
the class UserOperationLogManager method logJobOperation.
public void logJobOperation(String operation, String jobId, String jobDefinitionId, String processInstanceId, String processDefinitionId, String processDefinitionKey, PropertyChange propertyChange) {
if (isUserOperationLogEnabled()) {
UserOperationLogContext context = new UserOperationLogContext();
UserOperationLogContextEntryBuilder entryBuilder = UserOperationLogContextEntryBuilder.entry(operation, EntityTypes.JOB).jobId(jobId).jobDefinitionId(jobDefinitionId).processDefinitionId(processDefinitionId).processDefinitionKey(processDefinitionKey).propertyChanges(propertyChange);
if (jobId != null) {
JobEntity job = getJobManager().findJobById(jobId);
// Backward compatibility
if (job != null) {
entryBuilder.inContextOf(job);
}
} else if (jobDefinitionId != null) {
JobDefinitionEntity jobDefinition = getJobDefinitionManager().findById(jobDefinitionId);
// Backward compatibility
if (jobDefinition != null) {
entryBuilder.inContextOf(jobDefinition);
}
} else if (processInstanceId != null) {
ExecutionEntity processInstance = getProcessInstanceManager().findExecutionById(processInstanceId);
// Backward compatibility
if (processInstance != null) {
entryBuilder.inContextOf(processInstance);
}
} else if (processDefinitionId != null) {
ProcessDefinitionEntity definition = getProcessDefinitionManager().findLatestProcessDefinitionById(processDefinitionId);
// Backward compatibility
if (definition != null) {
entryBuilder.inContextOf(definition);
}
}
context.addEntry(entryBuilder.create());
fireUserOperationLog(context);
}
}
use of org.camunda.bpm.engine.impl.oplog.UserOperationLogContextEntryBuilder in project camunda-bpm-platform by camunda.
the class UserOperationLogManager method logDeploymentOperation.
public void logDeploymentOperation(String operation, String deploymentId, List<PropertyChange> propertyChanges) {
if (isUserOperationLogEnabled()) {
UserOperationLogContext context = new UserOperationLogContext();
UserOperationLogContextEntryBuilder entryBuilder = UserOperationLogContextEntryBuilder.entry(operation, EntityTypes.DEPLOYMENT).deploymentId(deploymentId).propertyChanges(propertyChanges);
context.addEntry(entryBuilder.create());
fireUserOperationLog(context);
}
}
use of org.camunda.bpm.engine.impl.oplog.UserOperationLogContextEntryBuilder in project camunda-bpm-platform by camunda.
the class UserOperationLogManager method logLinkOperation.
public void logLinkOperation(String operation, TaskEntity task, PropertyChange propertyChange) {
if (isUserOperationLogEnabled()) {
UserOperationLogContext context = new UserOperationLogContext();
UserOperationLogContextEntryBuilder entryBuilder = UserOperationLogContextEntryBuilder.entry(operation, EntityTypes.IDENTITY_LINK).inContextOf(task, Arrays.asList(propertyChange));
context.addEntry(entryBuilder.create());
fireUserOperationLog(context);
}
}
Aggregations