Codota Logo
org.camunda.bpm.engine.impl.persistence.entity
Code IndexAdd Codota to your IDE (free)

How to use org.camunda.bpm.engine.impl.persistence.entity

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: camunda/camunda-bpm-platform

protected void configureQuery(ActivityStatisticsQueryImpl query) {
 checkReadProcessDefinition(query);
 getAuthorizationManager().configureActivityStatisticsQuery(query);
 getTenantManager().configureQuery(query);
}
origin: camunda/camunda-bpm-platform

 protected void configureQuery(HistoricExternalTaskLogQueryImpl query) {
  getAuthorizationManager().configureHistoricExternalTaskLogQuery(query);
  getTenantManager().configureQuery(query);
 }
}
origin: camunda/camunda-bpm-platform

/**
 * Cascades the deletion of a process definition to the history, deletes the history.
 *
 * @param processDefinitionId the process definition id
 */
protected void cascadeDeleteHistoryForProcessDefinition(String processDefinitionId) {
  // remove historic incidents which are not referenced to a process instance
 getHistoricIncidentManager().deleteHistoricIncidentsByProcessDefinitionId(processDefinitionId);
  // remove historic identity links which are not reference to a process instance
 getHistoricIdentityLinkManager().deleteHistoricIdentityLinksLogByProcessDefinitionId(processDefinitionId);
  // remove historic job log entries not related to a process instance
 getHistoricJobLogManager().deleteHistoricJobLogsByProcessDefinitionId(processDefinitionId);
}
origin: camunda/camunda-bpm-platform

public static EventSubscriptionEntity createAndInsert(ExecutionEntity executionEntity, EventType eventType, ActivityImpl activity, String configuration) {
 EventSubscriptionEntity eventSubscription = new EventSubscriptionEntity(executionEntity, eventType);
 eventSubscription.setActivity(activity);
 eventSubscription.setTenantId(executionEntity.getTenantId());
 eventSubscription.setConfiguration(configuration);
 eventSubscription.insert();
 return eventSubscription;
}
origin: camunda/camunda-bpm-platform

public void deleteHistoricCaseInstancesByIds(List<String> historicCaseInstanceIds) {
 if (isHistoryEnabled()) {
  getHistoricDetailManager().deleteHistoricDetailsByCaseInstanceIds(historicCaseInstanceIds);
  getHistoricVariableInstanceManager().deleteHistoricVariableInstancesByCaseInstanceIds(historicCaseInstanceIds);
  getHistoricCaseActivityInstanceManager().deleteHistoricCaseActivityInstancesByCaseInstanceIds(historicCaseInstanceIds);
  getHistoricTaskInstanceManager().deleteHistoricTaskInstancesByCaseInstanceIds(historicCaseInstanceIds);
  getDbEntityManager().delete(HistoricCaseInstanceEntity.class, "deleteHistoricCaseInstancesByIds", historicCaseInstanceIds);
 }
}
origin: camunda/camunda-bpm-platform

public EventSubscriptionEntity(ExecutionEntity executionEntity, EventType eventType) {
 this(eventType);
 setExecution(executionEntity);
 setActivity(execution.getActivity());
 this.processInstanceId = executionEntity.getProcessInstanceId();
 this.tenantId = executionEntity.getTenantId();
}
origin: camunda/camunda-bpm-platform

public IdentityLinkEntity newIdentityLink(String userId, String groupId, String type) {
 IdentityLinkEntity identityLinkEntity = new IdentityLinkEntity();
 identityLinkEntity.setTask(this);
 identityLinkEntity.setUserId(userId);
 identityLinkEntity.setGroupId(groupId);
 identityLinkEntity.setType(type);
 identityLinkEntity.setTenantId(getTenantId());
 return identityLinkEntity;
}
origin: camunda/camunda-bpm-platform

public void deleteIdentityLinks(boolean withHistory) {
 List<IdentityLinkEntity> identityLinkEntities = getIdentityLinks();
 for (IdentityLinkEntity identityLinkEntity : identityLinkEntities) {
  fireDeleteIdentityLinkAuthorizationProvider(identityLinkEntity.getType(),
   identityLinkEntity.getUserId(), identityLinkEntity.getGroupId());
  identityLinkEntity.delete(withHistory);
 }
 isIdentityLinksInitialized = false;
}
origin: camunda/camunda-bpm-platform

private void removeIncidents() {
 for (IncidentEntity incident : getIncidents()) {
  if (isReplacedByParent()) {
   incident.setExecution(getReplacedBy());
  } else {
   incident.delete();
  }
 }
}
origin: camunda/camunda-bpm-platform

protected DeploymentBuilder addBytes(String resourceName, byte[] bytes) {
 ResourceEntity resource = new ResourceEntity();
 resource.setBytes(bytes);
 resource.setName(resourceName);
 deployment.addResource(resource);
 return this;
}
origin: camunda/camunda-bpm-platform

public void removeEventSubscriptions() {
 for (EventSubscriptionEntity eventSubscription : getEventSubscriptions()) {
  if (getReplacedBy() != null) {
   eventSubscription.setExecution(getReplacedBy());
  } else {
   eventSubscription.delete();
  }
 }
}
origin: camunda/camunda-bpm-platform

protected void suspendJobs(List<Job> jobs) {
 for (Job job: jobs) {
  JobEntity jobInstance = (JobEntity) job;
  jobInstance.setSuspensionState(SuspensionState.SUSPENDED.getStateCode());
  jobInstance.setDuedate(null);
 }
}
origin: camunda/camunda-bpm-platform

 public Void execute(CommandContext commandContext) {
  ExecutionEntity execution = commandContext.getExecutionManager().findExecutionById(processInstanceId);
  VariableInstanceEntity varInstance = (VariableInstanceEntity) execution.getVariableInstance(VARIABLE_NAME);
  HistoricVariableInstanceEntity historicVariableInstance = commandContext.getHistoricVariableInstanceManager()
   .findHistoricVariableInstanceByVariableInstanceId(varInstance.getId());
  historicByteArrayId[0] = historicVariableInstance.getByteArrayValueId();
  return null;
 }
});
origin: camunda/camunda-bpm-platform

@Override
public void detachState() {
 externalTask.getExecution().removeExternalTask(externalTask);
 externalTask.setExecution(null);
}
origin: camunda/camunda-bpm-platform

protected void removeFromExecution() {
 // remove reference in execution
 ExecutionEntity execution = getExecution();
 if(execution != null) {
  execution.removeEventSubscription(this);
 }
}
origin: camunda/camunda-bpm-platform

protected void removeExternalTasks() {
 for (ExternalTaskEntity externalTask : getExternalTasks()) {
  externalTask.delete();
 }
}
origin: camunda/camunda-bpm-platform

/**
 * Cascades the deletion of a process definition to the history, deletes the history.
 *
 * @param processDefinitionId the process definition id
 */
protected void cascadeDeleteHistoryForProcessDefinition(String processDefinitionId) {
  // remove historic incidents which are not referenced to a process instance
 getHistoricIncidentManager().deleteHistoricIncidentsByProcessDefinitionId(processDefinitionId);
  // remove historic identity links which are not reference to a process instance
 getHistoricIdentityLinkManager().deleteHistoricIdentityLinksLogByProcessDefinitionId(processDefinitionId);
  // remove historic job log entries not related to a process instance
 getHistoricJobLogManager().deleteHistoricJobLogsByProcessDefinitionId(processDefinitionId);
}
origin: camunda/camunda-bpm-platform

protected void configureQuery(ActivityStatisticsQueryImpl query) {
 checkReadProcessDefinition(query);
 getAuthorizationManager().configureActivityStatisticsQuery(query);
 getTenantManager().configureQuery(query);
}
origin: camunda/camunda-bpm-platform

 protected void configureQuery(HistoricExternalTaskLogQueryImpl query) {
  getAuthorizationManager().configureHistoricExternalTaskLogQuery(query);
  getTenantManager().configureQuery(query);
 }
}
origin: camunda/camunda-bpm-platform

protected void removeFromExecution() {
 // remove reference in execution
 ExecutionEntity execution = getExecution();
 if(execution != null) {
  execution.removeEventSubscription(this);
 }
}
org.camunda.bpm.engine.impl.persistence.entity

Most used classes

  • ExecutionEntity
  • EventSubscriptionEntity
  • ProcessDefinitionEntity
  • TaskEntity
  • UserEntity
  • AuthorizationEntity,
  • GroupEntity,
  • MessageEntity,
  • SuspensionState,
  • AuthorizationManager,
  • ByteArrayEntity,
  • ByteArrayManager,
  • FilterEntity,
  • HistoricVariableInstanceEntity,
  • JobManager,
  • TimerEntity,
  • ActivityInstanceImpl,
  • AttachmentEntity,
  • AttachmentManager
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