Tabnine Logo
HistoricVariableInstanceEntity.getProcessInstanceId
Code IndexAdd Tabnine to your IDE (free)

How to use
getProcessInstanceId
method
in
org.camunda.bpm.engine.impl.persistence.entity.HistoricVariableInstanceEntity

Best Java code snippets using org.camunda.bpm.engine.impl.persistence.entity.HistoricVariableInstanceEntity.getProcessInstanceId (Showing top 3 results out of 315)

origin: camunda/camunda-bpm-platform

protected void deleteHistoricVariableInstancesByProcessCaseInstanceId(String historicProcessInstanceId, String historicCaseInstanceId) {
 ensureOnlyOneNotNull("Only the process instance or case instance id should be set", historicProcessInstanceId, historicCaseInstanceId);
 if (isHistoryEnabled()) {
  // delete entries in DB
  List<HistoricVariableInstance> historicVariableInstances;
  if (historicProcessInstanceId != null) {
   historicVariableInstances = findHistoricVariableInstancesByProcessInstanceId(historicProcessInstanceId);
  }
  else {
   historicVariableInstances = findHistoricVariableInstancesByCaseInstanceId(historicCaseInstanceId);
  }
  for (HistoricVariableInstance historicVariableInstance : historicVariableInstances) {
   ((HistoricVariableInstanceEntity) historicVariableInstance).delete();
  }
  // delete entries in Cache
  List <HistoricVariableInstanceEntity> cachedHistoricVariableInstances = getDbEntityManager().getCachedEntitiesByType(HistoricVariableInstanceEntity.class);
  for (HistoricVariableInstanceEntity historicVariableInstance : cachedHistoricVariableInstances) {
   // make sure we only delete the right ones (as we cannot make a proper query in the cache)
   if ((historicProcessInstanceId != null && historicProcessInstanceId.equals(historicVariableInstance.getProcessInstanceId()))
     || (historicCaseInstanceId != null && historicCaseInstanceId.equals(historicVariableInstance.getCaseInstanceId()))) {
    historicVariableInstance.delete();
   }
  }
 }
}
origin: camunda/camunda-bpm-platform

protected void deleteHistoricVariableInstancesByProcessCaseInstanceId(String historicProcessInstanceId, String historicCaseInstanceId) {
 ensureOnlyOneNotNull("Only the process instance or case instance id should be set", historicProcessInstanceId, historicCaseInstanceId);
 if (isHistoryEnabled()) {
  // delete entries in DB
  List<HistoricVariableInstance> historicVariableInstances;
  if (historicProcessInstanceId != null) {
   historicVariableInstances = findHistoricVariableInstancesByProcessInstanceId(historicProcessInstanceId);
  }
  else {
   historicVariableInstances = findHistoricVariableInstancesByCaseInstanceId(historicCaseInstanceId);
  }
  for (HistoricVariableInstance historicVariableInstance : historicVariableInstances) {
   ((HistoricVariableInstanceEntity) historicVariableInstance).delete();
  }
  // delete entries in Cache
  List <HistoricVariableInstanceEntity> cachedHistoricVariableInstances = getDbEntityManager().getCachedEntitiesByType(HistoricVariableInstanceEntity.class);
  for (HistoricVariableInstanceEntity historicVariableInstance : cachedHistoricVariableInstances) {
   // make sure we only delete the right ones (as we cannot make a proper query in the cache)
   if ((historicProcessInstanceId != null && historicProcessInstanceId.equals(historicVariableInstance.getProcessInstanceId()))
     || (historicCaseInstanceId != null && historicCaseInstanceId.equals(historicVariableInstance.getCaseInstanceId()))) {
    historicVariableInstance.delete();
   }
  }
 }
}
origin: org.camunda.bpm/camunda-engine

protected void deleteHistoricVariableInstancesByProcessCaseInstanceId(String historicProcessInstanceId, String historicCaseInstanceId) {
 ensureOnlyOneNotNull("Only the process instance or case instance id should be set", historicProcessInstanceId, historicCaseInstanceId);
 if (isHistoryEnabled()) {
  // delete entries in DB
  List<HistoricVariableInstance> historicVariableInstances;
  if (historicProcessInstanceId != null) {
   historicVariableInstances = findHistoricVariableInstancesByProcessInstanceId(historicProcessInstanceId);
  }
  else {
   historicVariableInstances = findHistoricVariableInstancesByCaseInstanceId(historicCaseInstanceId);
  }
  for (HistoricVariableInstance historicVariableInstance : historicVariableInstances) {
   ((HistoricVariableInstanceEntity) historicVariableInstance).delete();
  }
  // delete entries in Cache
  List <HistoricVariableInstanceEntity> cachedHistoricVariableInstances = getDbEntityManager().getCachedEntitiesByType(HistoricVariableInstanceEntity.class);
  for (HistoricVariableInstanceEntity historicVariableInstance : cachedHistoricVariableInstances) {
   // make sure we only delete the right ones (as we cannot make a proper query in the cache)
   if ((historicProcessInstanceId != null && historicProcessInstanceId.equals(historicVariableInstance.getProcessInstanceId()))
     || (historicCaseInstanceId != null && historicCaseInstanceId.equals(historicVariableInstance.getCaseInstanceId()))) {
    historicVariableInstance.delete();
   }
  }
 }
}
org.camunda.bpm.engine.impl.persistence.entityHistoricVariableInstanceEntitygetProcessInstanceId

Popular methods of HistoricVariableInstanceEntity

  • getByteArrayId
  • getTypeName
  • <init>
  • delete
  • getCaseInstanceId
  • getId
  • getProcessDefinitionKey
  • getSerializer
  • getSerializerName
  • getTenantId
  • getTypedValue
  • setByteArrayValue
  • getTypedValue,
  • setByteArrayValue,
  • setSerializerName,
  • setState,
  • updateFromEvent,
  • getByteArrayValue,
  • getByteArrayValueId,
  • getName,
  • getRevision

Popular in Java

  • Updating database using SQL prepared statement
  • setContentView (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now