Codota Logo
ByteArrayManager.delete
Code IndexAdd Codota to your IDE (free)

How to use
delete
method
in
org.camunda.bpm.engine.impl.persistence.entity.ByteArrayManager

Best Java code snippets using org.camunda.bpm.engine.impl.persistence.entity.ByteArrayManager.delete (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: camunda/camunda-bpm-platform

@Override
public void execute(BatchJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId) {
 ByteArrayEntity configurationEntity = commandContext
   .getDbEntityManager()
   .selectById(ByteArrayEntity.class, configuration.getConfigurationByteArrayId());
 BatchConfiguration batchConfiguration = readConfiguration(configurationEntity.getBytes());
 boolean initialLegacyRestrictions = commandContext.isRestrictUserOperationLogToAuthenticatedUsers();
 commandContext.disableUserOperationLog();
 commandContext.setRestrictUserOperationLogToAuthenticatedUsers(true);
 try {
  commandContext.getProcessEngineConfiguration()
    .getHistoryService()
    .deleteHistoricDecisionInstancesBulk(batchConfiguration.getIds());
 } finally {
  commandContext.enableUserOperationLog();
  commandContext.setRestrictUserOperationLogToAuthenticatedUsers(initialLegacyRestrictions);
 }
 commandContext.getByteArrayManager().delete(configurationEntity);
}
origin: camunda/camunda-bpm-platform

@Override
public void execute(BatchJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId) {
 ByteArrayEntity configurationEntity = commandContext
   .getDbEntityManager()
   .selectById(ByteArrayEntity.class, configuration.getConfigurationByteArrayId());
 BatchConfiguration batchConfiguration = readConfiguration(configurationEntity.getBytes());
 boolean initialLegacyRestrictions = commandContext.isRestrictUserOperationLogToAuthenticatedUsers();
 commandContext.disableUserOperationLog();
 commandContext.setRestrictUserOperationLogToAuthenticatedUsers(true);
 try {
  commandContext.getProcessEngineConfiguration()
    .getHistoryService()
    .deleteHistoricProcessInstances(batchConfiguration.getIds());
 } finally {
  commandContext.enableUserOperationLog();
  commandContext.setRestrictUserOperationLogToAuthenticatedUsers(initialLegacyRestrictions);
 }
 commandContext.getByteArrayManager().delete(configurationEntity);
}
origin: camunda/camunda-bpm-platform

@Override
public void execute(BatchJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId) {
 ByteArrayEntity configurationEntity = commandContext
   .getDbEntityManager()
   .selectById(ByteArrayEntity.class, configuration.getConfigurationByteArrayId());
 BatchConfiguration batchConfiguration = readConfiguration(configurationEntity.getBytes());
 boolean initialLegacyRestrictions = commandContext.isRestrictUserOperationLogToAuthenticatedUsers();
 commandContext.disableUserOperationLog();
 commandContext.setRestrictUserOperationLogToAuthenticatedUsers(true);
 try {
  commandContext.getProcessEngineConfiguration()
    .getHistoryService()
    .deleteHistoricDecisionInstancesBulk(batchConfiguration.getIds());
 } finally {
  commandContext.enableUserOperationLog();
  commandContext.setRestrictUserOperationLogToAuthenticatedUsers(initialLegacyRestrictions);
 }
 commandContext.getByteArrayManager().delete(configurationEntity);
}
origin: camunda/camunda-bpm-platform

@Override
public void execute(BatchJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId) {
 ByteArrayEntity configurationEntity = commandContext
   .getDbEntityManager()
   .selectById(ByteArrayEntity.class, configuration.getConfigurationByteArrayId());
 BatchConfiguration batchConfiguration = readConfiguration(configurationEntity.getBytes());
 boolean initialLegacyRestrictions = commandContext.isRestrictUserOperationLogToAuthenticatedUsers();
 commandContext.disableUserOperationLog();
 commandContext.setRestrictUserOperationLogToAuthenticatedUsers(true);
 try {
  commandContext.getProcessEngineConfiguration()
    .getHistoryService()
    .deleteHistoricProcessInstances(batchConfiguration.getIds());
 } finally {
  commandContext.enableUserOperationLog();
  commandContext.setRestrictUserOperationLogToAuthenticatedUsers(initialLegacyRestrictions);
 }
 commandContext.getByteArrayManager().delete(configurationEntity);
}
origin: camunda/camunda-bpm-platform

 @Override
 public void execute(BatchJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId) {
  ByteArrayEntity configurationEntity = commandContext
    .getDbEntityManager()
    .selectById(ByteArrayEntity.class, configuration.getConfigurationByteArrayId());

  SetRetriesBatchConfiguration batchConfiguration = readConfiguration(configurationEntity.getBytes());

  boolean initialLegacyRestrictions = commandContext.isRestrictUserOperationLogToAuthenticatedUsers();
  commandContext.disableUserOperationLog();
  commandContext.setRestrictUserOperationLogToAuthenticatedUsers(true);
  try {
   commandContext.getProcessEngineConfiguration()
     .getManagementService()
     .setJobRetries(batchConfiguration.getIds(), batchConfiguration.getRetries());
  } finally {
   commandContext.enableUserOperationLog();
   commandContext.setRestrictUserOperationLogToAuthenticatedUsers(initialLegacyRestrictions);
  }

  commandContext.getByteArrayManager().delete(configurationEntity);
 }
}
origin: camunda/camunda-bpm-platform

@Override
public void execute(BatchJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId) {
 ByteArrayEntity configurationEntity = commandContext
   .getDbEntityManager()
   .selectById(ByteArrayEntity.class, configuration.getConfigurationByteArrayId());
 DeleteProcessInstanceBatchConfiguration batchConfiguration = readConfiguration(configurationEntity.getBytes());
 boolean initialLegacyRestrictions = commandContext.isRestrictUserOperationLogToAuthenticatedUsers();
 commandContext.disableUserOperationLog();
 commandContext.setRestrictUserOperationLogToAuthenticatedUsers(true);
 try {
  commandContext.getProcessEngineConfiguration()
    .getRuntimeService()
    .deleteProcessInstances(batchConfiguration.getIds(), batchConfiguration.deleteReason, batchConfiguration.isSkipCustomListeners(), true, batchConfiguration.isSkipSubprocesses());
 } finally {
  commandContext.enableUserOperationLog();
  commandContext.setRestrictUserOperationLogToAuthenticatedUsers(initialLegacyRestrictions);
 }
 commandContext.getByteArrayManager().delete(configurationEntity);
}
origin: camunda/camunda-bpm-platform

 @Override
 public void execute(BatchJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId) {
  ByteArrayEntity configurationEntity = commandContext
    .getDbEntityManager()
    .selectById(ByteArrayEntity.class, configuration.getConfigurationByteArrayId());

  SetRetriesBatchConfiguration batchConfiguration = readConfiguration(configurationEntity.getBytes());

  boolean initialLegacyRestrictions = commandContext.isRestrictUserOperationLogToAuthenticatedUsers();
  commandContext.disableUserOperationLog();
  commandContext.setRestrictUserOperationLogToAuthenticatedUsers(true);
  try {
   commandContext.getProcessEngineConfiguration()
     .getManagementService()
     .setJobRetries(batchConfiguration.getIds(), batchConfiguration.getRetries());
  } finally {
   commandContext.enableUserOperationLog();
   commandContext.setRestrictUserOperationLogToAuthenticatedUsers(initialLegacyRestrictions);
  }

  commandContext.getByteArrayManager().delete(configurationEntity);
 }
}
origin: camunda/camunda-bpm-platform

@Override
public void execute(BatchJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId) {
 ByteArrayEntity configurationEntity = commandContext
   .getDbEntityManager()
   .selectById(ByteArrayEntity.class, configuration.getConfigurationByteArrayId());
 SetRetriesBatchConfiguration batchConfiguration = readConfiguration(configurationEntity.getBytes());
 boolean initialLegacyRestrictions = commandContext.isRestrictUserOperationLogToAuthenticatedUsers();
 commandContext.disableUserOperationLog();
 commandContext.setRestrictUserOperationLogToAuthenticatedUsers(true);
 try {
  commandContext.getProcessEngineConfiguration()
    .getExternalTaskService()
    .setRetries(batchConfiguration.getIds(), batchConfiguration.getRetries());
 } finally {
  commandContext.enableUserOperationLog();
  commandContext.setRestrictUserOperationLogToAuthenticatedUsers(initialLegacyRestrictions);
 }
 commandContext.getByteArrayManager().delete(configurationEntity);
 
}
origin: camunda/camunda-bpm-platform

@Override
public void execute(BatchJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId) {
 ByteArrayEntity configurationEntity = commandContext
   .getDbEntityManager()
   .selectById(ByteArrayEntity.class, configuration.getConfigurationByteArrayId());
 SetRetriesBatchConfiguration batchConfiguration = readConfiguration(configurationEntity.getBytes());
 boolean initialLegacyRestrictions = commandContext.isRestrictUserOperationLogToAuthenticatedUsers();
 commandContext.disableUserOperationLog();
 commandContext.setRestrictUserOperationLogToAuthenticatedUsers(true);
 try {
  commandContext.getProcessEngineConfiguration()
    .getExternalTaskService()
    .setRetries(batchConfiguration.getIds(), batchConfiguration.getRetries());
 } finally {
  commandContext.enableUserOperationLog();
  commandContext.setRestrictUserOperationLogToAuthenticatedUsers(initialLegacyRestrictions);
 }
 commandContext.getByteArrayManager().delete(configurationEntity);
 
}
origin: camunda/camunda-bpm-platform

@Override
public void execute(BatchJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId) {
 ByteArrayEntity configurationEntity = commandContext
   .getDbEntityManager()
   .selectById(ByteArrayEntity.class, configuration.getConfigurationByteArrayId());
 MigrationBatchConfiguration batchConfiguration = readConfiguration(configurationEntity.getBytes());
 MigrationPlanExecutionBuilder executionBuilder = commandContext.getProcessEngineConfiguration()
   .getRuntimeService()
   .newMigration(batchConfiguration.getMigrationPlan())
   .processInstanceIds(batchConfiguration.getIds());
 if (batchConfiguration.isSkipCustomListeners()) {
  executionBuilder.skipCustomListeners();
 }
 if (batchConfiguration.isSkipIoMappings()) {
  executionBuilder.skipIoMappings();
 }
 // uses internal API in order to skip writing user operation log (CommandContext#disableUserOperationLog
 // is not sufficient with legacy engine config setting "restrictUserOperationLogToAuthenticatedUsers" = false)
 ((MigrationPlanExecutionBuilderImpl) executionBuilder).execute(false);
 commandContext.getByteArrayManager().delete(configurationEntity);
}
origin: camunda/camunda-bpm-platform

@Override
public void execute(BatchJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId) {
 ByteArrayEntity configurationEntity = commandContext
   .getDbEntityManager()
   .selectById(ByteArrayEntity.class, configuration.getConfigurationByteArrayId());
 DeleteProcessInstanceBatchConfiguration batchConfiguration = readConfiguration(configurationEntity.getBytes());
 boolean initialLegacyRestrictions = commandContext.isRestrictUserOperationLogToAuthenticatedUsers();
 commandContext.disableUserOperationLog();
 commandContext.setRestrictUserOperationLogToAuthenticatedUsers(true);
 try {
  commandContext.getProcessEngineConfiguration()
    .getRuntimeService()
    .deleteProcessInstances(batchConfiguration.getIds(), batchConfiguration.deleteReason, batchConfiguration.isSkipCustomListeners(), true, batchConfiguration.isSkipSubprocesses());
 } finally {
  commandContext.enableUserOperationLog();
  commandContext.setRestrictUserOperationLogToAuthenticatedUsers(initialLegacyRestrictions);
 }
 commandContext.getByteArrayManager().delete(configurationEntity);
}
origin: camunda/camunda-bpm-platform

@Override
public void execute(BatchJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId) {
 ByteArrayEntity configurationEntity = commandContext
   .getDbEntityManager()
   .selectById(ByteArrayEntity.class, configuration.getConfigurationByteArrayId());
 MigrationBatchConfiguration batchConfiguration = readConfiguration(configurationEntity.getBytes());
 MigrationPlanExecutionBuilder executionBuilder = commandContext.getProcessEngineConfiguration()
   .getRuntimeService()
   .newMigration(batchConfiguration.getMigrationPlan())
   .processInstanceIds(batchConfiguration.getIds());
 if (batchConfiguration.isSkipCustomListeners()) {
  executionBuilder.skipCustomListeners();
 }
 if (batchConfiguration.isSkipIoMappings()) {
  executionBuilder.skipIoMappings();
 }
 // uses internal API in order to skip writing user operation log (CommandContext#disableUserOperationLog
 // is not sufficient with legacy engine config setting "restrictUserOperationLogToAuthenticatedUsers" = false)
 ((MigrationPlanExecutionBuilderImpl) executionBuilder).execute(false);
 commandContext.getByteArrayManager().delete(configurationEntity);
}
origin: camunda/camunda-bpm-platform

@Override
public void execute(BatchJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId) {
 ByteArrayEntity configurationEntity = commandContext
   .getDbEntityManager()
   .selectById(ByteArrayEntity.class, configuration.getConfigurationByteArrayId());
 ModificationBatchConfiguration batchConfiguration = readConfiguration(configurationEntity.getBytes());
 ModificationBuilderImpl executionBuilder = (ModificationBuilderImpl) commandContext.getProcessEngineConfiguration()
   .getRuntimeService()
   .createModification(batchConfiguration.getProcessDefinitionId())
   .processInstanceIds(batchConfiguration.getIds());
 executionBuilder.setInstructions(batchConfiguration.getInstructions());
 if (batchConfiguration.isSkipCustomListeners()) {
  executionBuilder.skipCustomListeners();
 }
 if (batchConfiguration.isSkipIoMappings()) {
  executionBuilder.skipIoMappings();
 }
 executionBuilder.execute(false);
 commandContext.getByteArrayManager().delete(configurationEntity);
}
origin: camunda/camunda-bpm-platform

@Override
public void execute(BatchJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId) {
 ByteArrayEntity configurationEntity = commandContext
   .getDbEntityManager()
   .selectById(ByteArrayEntity.class, configuration.getConfigurationByteArrayId());
 ModificationBatchConfiguration batchConfiguration = readConfiguration(configurationEntity.getBytes());
 ModificationBuilderImpl executionBuilder = (ModificationBuilderImpl) commandContext.getProcessEngineConfiguration()
   .getRuntimeService()
   .createModification(batchConfiguration.getProcessDefinitionId())
   .processInstanceIds(batchConfiguration.getIds());
 executionBuilder.setInstructions(batchConfiguration.getInstructions());
 if (batchConfiguration.isSkipCustomListeners()) {
  executionBuilder.skipCustomListeners();
 }
 if (batchConfiguration.isSkipIoMappings()) {
  executionBuilder.skipIoMappings();
 }
 executionBuilder.execute(false);
 commandContext.getByteArrayManager().delete(configurationEntity);
}
origin: camunda/camunda-bpm-platform

commandContext.getByteArrayManager().delete(configurationEntity);
origin: camunda/camunda-bpm-platform

commandContext.getByteArrayManager().delete(configurationEntity);
origin: org.camunda.bpm/camunda-engine

@Override
public void execute(BatchJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId) {
 ByteArrayEntity configurationEntity = commandContext
   .getDbEntityManager()
   .selectById(ByteArrayEntity.class, configuration.getConfigurationByteArrayId());
 BatchConfiguration batchConfiguration = readConfiguration(configurationEntity.getBytes());
 boolean initialLegacyRestrictions = commandContext.isRestrictUserOperationLogToAuthenticatedUsers();
 commandContext.disableUserOperationLog();
 commandContext.setRestrictUserOperationLogToAuthenticatedUsers(true);
 try {
  commandContext.getProcessEngineConfiguration()
    .getHistoryService()
    .deleteHistoricProcessInstances(batchConfiguration.getIds());
 } finally {
  commandContext.enableUserOperationLog();
  commandContext.setRestrictUserOperationLogToAuthenticatedUsers(initialLegacyRestrictions);
 }
 commandContext.getByteArrayManager().delete(configurationEntity);
}
origin: org.camunda.bpm/camunda-engine

@Override
public void execute(BatchJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId) {
 ByteArrayEntity configurationEntity = commandContext
   .getDbEntityManager()
   .selectById(ByteArrayEntity.class, configuration.getConfigurationByteArrayId());
 DeleteProcessInstanceBatchConfiguration batchConfiguration = readConfiguration(configurationEntity.getBytes());
 boolean initialLegacyRestrictions = commandContext.isRestrictUserOperationLogToAuthenticatedUsers();
 commandContext.disableUserOperationLog();
 commandContext.setRestrictUserOperationLogToAuthenticatedUsers(true);
 try {
  commandContext.getProcessEngineConfiguration()
    .getRuntimeService()
    .deleteProcessInstances(batchConfiguration.getIds(), batchConfiguration.deleteReason, batchConfiguration.isSkipCustomListeners(), true, batchConfiguration.isSkipSubprocesses());
 } finally {
  commandContext.enableUserOperationLog();
  commandContext.setRestrictUserOperationLogToAuthenticatedUsers(initialLegacyRestrictions);
 }
 commandContext.getByteArrayManager().delete(configurationEntity);
}
origin: org.camunda.bpm/camunda-engine

@Override
public void execute(BatchJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId) {
 ByteArrayEntity configurationEntity = commandContext
   .getDbEntityManager()
   .selectById(ByteArrayEntity.class, configuration.getConfigurationByteArrayId());
 MigrationBatchConfiguration batchConfiguration = readConfiguration(configurationEntity.getBytes());
 MigrationPlanExecutionBuilder executionBuilder = commandContext.getProcessEngineConfiguration()
   .getRuntimeService()
   .newMigration(batchConfiguration.getMigrationPlan())
   .processInstanceIds(batchConfiguration.getIds());
 if (batchConfiguration.isSkipCustomListeners()) {
  executionBuilder.skipCustomListeners();
 }
 if (batchConfiguration.isSkipIoMappings()) {
  executionBuilder.skipIoMappings();
 }
 // uses internal API in order to skip writing user operation log (CommandContext#disableUserOperationLog
 // is not sufficient with legacy engine config setting "restrictUserOperationLogToAuthenticatedUsers" = false)
 ((MigrationPlanExecutionBuilderImpl) executionBuilder).execute(false);
 commandContext.getByteArrayManager().delete(configurationEntity);
}
origin: org.camunda.bpm/camunda-engine

@Override
public void execute(BatchJobConfiguration configuration, ExecutionEntity execution, CommandContext commandContext, String tenantId) {
 ByteArrayEntity configurationEntity = commandContext
   .getDbEntityManager()
   .selectById(ByteArrayEntity.class, configuration.getConfigurationByteArrayId());
 ModificationBatchConfiguration batchConfiguration = readConfiguration(configurationEntity.getBytes());
 ModificationBuilderImpl executionBuilder = (ModificationBuilderImpl) commandContext.getProcessEngineConfiguration()
   .getRuntimeService()
   .createModification(batchConfiguration.getProcessDefinitionId())
   .processInstanceIds(batchConfiguration.getIds());
 executionBuilder.setInstructions(batchConfiguration.getInstructions());
 if (batchConfiguration.isSkipCustomListeners()) {
  executionBuilder.skipCustomListeners();
 }
 if (batchConfiguration.isSkipIoMappings()) {
  executionBuilder.skipIoMappings();
 }
 executionBuilder.execute(false);
 commandContext.getByteArrayManager().delete(configurationEntity);
}
org.camunda.bpm.engine.impl.persistence.entityByteArrayManagerdelete

Javadoc

Deletes the ByteArrayEntity with the given id from the database. Important: this operation will NOT do any optimistic locking, to avoid loading the bytes in memory. So use this method only in conjunction with an entity that has optimistic locking!.

Popular methods of ByteArrayManager

  • deleteByteArrayById
    Deletes the ByteArrayEntity with the given id from the database. Important: this operation will NOT
  • insert
  • addRemovalTimeToByteArraysByRootProcessInstanceId
  • deleteByteArraysByRemovalTime
  • getDbEntityManager
  • insertByteArray

Popular in Java

  • Making http requests using okhttp
  • setContentView (Activity)
  • startActivity (Activity)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Path (java.nio.file)
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JLabel (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now