use of org.camunda.bpm.engine.impl.persistence.entity.PropertyChange in project camunda-bpm-platform by camunda.
the class DeleteUserIdentityLinkCmd method execute.
@Override
public Void execute(CommandContext commandContext) {
super.execute(commandContext);
PropertyChange propertyChange = new PropertyChange(type, null, userId);
commandContext.getOperationLogManager().logLinkOperation(UserOperationLogEntry.OPERATION_TYPE_DELETE_USER_LINK, task, propertyChange);
return null;
}
use of org.camunda.bpm.engine.impl.persistence.entity.PropertyChange in project camunda-bpm-platform by camunda.
the class AddGroupIdentityLinkCmd method execute.
@Override
public Void execute(CommandContext commandContext) {
super.execute(commandContext);
PropertyChange propertyChange = new PropertyChange(type, null, groupId);
commandContext.getOperationLogManager().logLinkOperation(UserOperationLogEntry.OPERATION_TYPE_ADD_GROUP_LINK, task, propertyChange);
return null;
}
use of org.camunda.bpm.engine.impl.persistence.entity.PropertyChange in project camunda-bpm-platform by camunda.
the class AbstractSetBatchStateCmd method logUserOperation.
protected void logUserOperation(CommandContext commandContext) {
PropertyChange propertyChange = new PropertyChange(SUSPENSION_STATE_PROPERTY, null, getNewSuspensionState().getName());
commandContext.getOperationLogManager().logBatchOperation(getUserOperationType(), batchId, propertyChange);
}
use of org.camunda.bpm.engine.impl.persistence.entity.PropertyChange in project camunda-bpm-platform by camunda.
the class AddUserIdentityLinkCmd method execute.
@Override
public Void execute(CommandContext commandContext) {
super.execute(commandContext);
PropertyChange propertyChange = new PropertyChange(type, null, userId);
commandContext.getOperationLogManager().logLinkOperation(UserOperationLogEntry.OPERATION_TYPE_ADD_USER_LINK, task, propertyChange);
return null;
}
use of org.camunda.bpm.engine.impl.persistence.entity.PropertyChange in project camunda-bpm-platform by camunda.
the class AbstractRestartProcessInstanceCmd method writeUserOperationLog.
protected void writeUserOperationLog(CommandContext commandContext, ProcessDefinition processDefinition, int numInstances, boolean async) {
List<PropertyChange> propertyChanges = new ArrayList<PropertyChange>();
propertyChanges.add(new PropertyChange("nrOfInstances", null, numInstances));
propertyChanges.add(new PropertyChange("async", null, async));
commandContext.getOperationLogManager().logProcessInstanceOperation(UserOperationLogEntry.OPERATION_TYPE_RESTART_PROCESS_INSTANCE, null, processDefinition.getId(), processDefinition.getKey(), propertyChanges);
}
Aggregations