public DeploymentCache(CacheFactory factory, int cacheCapacity) { processDefinitionEntityCache = new ProcessDefinitionCache(factory, cacheCapacity, cacheDeployer); caseDefinitionCache = new CaseDefinitionCache(factory, cacheCapacity, cacheDeployer); decisionDefinitionCache = new DecisionDefinitionCache(factory, cacheCapacity, cacheDeployer); decisionRequirementsDefinitionCache = new DecisionRequirementsDefinitionCache(factory, cacheCapacity, cacheDeployer); bpmnModelInstanceCache = new BpmnModelInstanceCache(factory, cacheCapacity, processDefinitionEntityCache); cmmnModelInstanceCache = new CmmnModelInstanceCache(factory, cacheCapacity, caseDefinitionCache); dmnModelInstanceCache = new DmnModelInstanceCache(factory, cacheCapacity, decisionDefinitionCache); }
public void removeDeployment(String deploymentId) { bpmnModelInstanceCache.removeAllDefinitionsByDeploymentId(deploymentId); if(Context.getProcessEngineConfiguration().isCmmnEnabled()) { cmmnModelInstanceCache.removeAllDefinitionsByDeploymentId(deploymentId); } if(Context.getProcessEngineConfiguration().isDmnEnabled()) { dmnModelInstanceCache.removeAllDefinitionsByDeploymentId(deploymentId); } removeAllDecisionRequirementsDefinitionsByDeploymentId(deploymentId); }
public CaseDefinitionEntity getCaseDefinitionById(String caseDefinitionId) { checkInvalidDefinitionId(caseDefinitionId); CaseDefinitionEntity caseDefinition = getDefinition(caseDefinitionId); if (caseDefinition == null) { caseDefinition = findDeployedDefinitionById(caseDefinitionId); } return caseDefinition; }
public void removeDecisionDefinition(String decisionDefinitionId) { decisionDefinitionCache.removeDefinitionFromCache(decisionDefinitionId); dmnModelInstanceCache.remove(decisionDefinitionId); }
public void removeCaseDefinition(String caseDefinitionId) { caseDefinitionCache.removeDefinitionFromCache(caseDefinitionId); cmmnModelInstanceCache.remove(caseDefinitionId); }
public void removeProcessDefinition(String processDefinitionId) { processDefinitionEntityCache.removeDefinitionFromCache(processDefinitionId); bpmnModelInstanceCache.remove(processDefinitionId); }
public InstanceType findBpmnModelInstanceForDefinition(String definitionId) { InstanceType bpmnModelInstance = instanceCache.get(definitionId); if (bpmnModelInstance == null) { DefinitionType definition = definitionCache.findDeployedDefinitionById(definitionId); bpmnModelInstance = loadAndCacheBpmnModelInstance(definition); } return bpmnModelInstance; }
/** * @return the latest version of the process definition with the given key (from any tenant) * @throws ProcessEngineException if more than one tenant has a process definition with the given key * @see #findDeployedLatestProcessDefinitionByKeyAndTenantId(String, String) */ public ProcessDefinitionEntity findDeployedLatestProcessDefinitionByKey(String processDefinitionKey) { return processDefinitionEntityCache.findDeployedLatestDefinitionByKey(processDefinitionKey); }
/** * @return the latest version of the process definition with the given key and tenant id */ public ProcessDefinitionEntity findDeployedLatestProcessDefinitionByKeyAndTenantId(String processDefinitionKey, String tenantId) { return processDefinitionEntityCache.findDeployedLatestDefinitionByKeyAndTenantId(processDefinitionKey, tenantId); }
public DeploymentCache(CacheFactory factory, int cacheCapacity) { processDefinitionEntityCache = new ProcessDefinitionCache(factory, cacheCapacity, cacheDeployer); caseDefinitionCache = new CaseDefinitionCache(factory, cacheCapacity, cacheDeployer); decisionDefinitionCache = new DecisionDefinitionCache(factory, cacheCapacity, cacheDeployer); decisionRequirementsDefinitionCache = new DecisionRequirementsDefinitionCache(factory, cacheCapacity, cacheDeployer); bpmnModelInstanceCache = new BpmnModelInstanceCache(factory, cacheCapacity, processDefinitionEntityCache); cmmnModelInstanceCache = new CmmnModelInstanceCache(factory, cacheCapacity, caseDefinitionCache); dmnModelInstanceCache = new DmnModelInstanceCache(factory, cacheCapacity, decisionDefinitionCache); }
public void removeDeployment(String deploymentId) { bpmnModelInstanceCache.removeAllDefinitionsByDeploymentId(deploymentId); if(Context.getProcessEngineConfiguration().isCmmnEnabled()) { cmmnModelInstanceCache.removeAllDefinitionsByDeploymentId(deploymentId); } if(Context.getProcessEngineConfiguration().isDmnEnabled()) { dmnModelInstanceCache.removeAllDefinitionsByDeploymentId(deploymentId); } removeAllDecisionRequirementsDefinitionsByDeploymentId(deploymentId); }
public void removeDecisionDefinition(String decisionDefinitionId) { decisionDefinitionCache.removeDefinitionFromCache(decisionDefinitionId); dmnModelInstanceCache.remove(decisionDefinitionId); }
public void removeCaseDefinition(String caseDefinitionId) { caseDefinitionCache.removeDefinitionFromCache(caseDefinitionId); cmmnModelInstanceCache.remove(caseDefinitionId); }
public void removeProcessDefinition(String processDefinitionId) { processDefinitionEntityCache.removeDefinitionFromCache(processDefinitionId); bpmnModelInstanceCache.remove(processDefinitionId); }