public void addCaseDefinition(CaseDefinitionEntity caseDefinition) { caseDefinitionCache.addDefinition(caseDefinition); }
public CaseDefinitionEntity getCaseDefinitionById(String caseDefinitionId) { checkInvalidDefinitionId(caseDefinitionId); CaseDefinitionEntity caseDefinition = getDefinition(caseDefinitionId); if (caseDefinition == null) { caseDefinition = findDeployedDefinitionById(caseDefinitionId); } return caseDefinition; }
public CaseDefinitionEntity findCaseDefinitionFromCache(String caseDefinitionId) { return caseDefinitionCache.findDefinitionFromCache(caseDefinitionId); }
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); }
/** * @return the latest version of the case definition with the given key and tenant id */ public CaseDefinitionEntity findDeployedLatestCaseDefinitionByKeyAndTenantId(String caseDefinitionKey, String tenantId) { return caseDefinitionCache.findDeployedLatestDefinitionByKeyAndTenantId(caseDefinitionKey, tenantId); }
public CaseDefinitionEntity findDeployedCaseDefinitionByKeyVersionAndTenantId(String caseDefinitionKey, Integer caseDefinitionVersion, String tenantId) { return caseDefinitionCache.findDeployedDefinitionByKeyVersionAndTenantId(caseDefinitionKey, caseDefinitionVersion, tenantId); }
public void discardCaseDefinitionCache() { caseDefinitionCache.clear(); cmmnModelInstanceCache.clear(); }
/** * @return the latest version of the case definition with the given key (from any tenant) * @throws ProcessEngineException if more than one tenant has a case definition with the given key * @see #findDeployedLatestCaseDefinitionByKeyAndTenantId(String, String) */ public CaseDefinitionEntity findDeployedLatestCaseDefinitionByKey(String caseDefinitionKey) { return caseDefinitionCache.findDeployedLatestDefinitionByKey(caseDefinitionKey); }
public CaseDefinitionEntity findDeployedCaseDefinitionById(String caseDefinitionId) { return caseDefinitionCache.findDeployedDefinitionById(caseDefinitionId); }
public CaseDefinitionEntity findDeployedCaseDefinitionByDeploymentAndKey(String deploymentId, String caseDefinitionKey) { return caseDefinitionCache.findDeployedDefinitionByDeploymentAndKey(deploymentId, caseDefinitionKey); }
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); }
/** * @return the latest version of the case definition with the given key and tenant id */ public CaseDefinitionEntity findDeployedLatestCaseDefinitionByKeyAndTenantId(String caseDefinitionKey, String tenantId) { return caseDefinitionCache.findDeployedLatestDefinitionByKeyAndTenantId(caseDefinitionKey, tenantId); }
public CaseDefinitionEntity findDeployedCaseDefinitionByKeyVersionAndTenantId(String caseDefinitionKey, Integer caseDefinitionVersion, String tenantId) { return caseDefinitionCache.findDeployedDefinitionByKeyVersionAndTenantId(caseDefinitionKey, caseDefinitionVersion, tenantId); }
public void discardCaseDefinitionCache() { caseDefinitionCache.clear(); cmmnModelInstanceCache.clear(); }
/** * @return the latest version of the case definition with the given key (from any tenant) * @throws ProcessEngineException if more than one tenant has a case definition with the given key * @see #findDeployedLatestCaseDefinitionByKeyAndTenantId(String, String) */ public CaseDefinitionEntity findDeployedLatestCaseDefinitionByKey(String caseDefinitionKey) { return caseDefinitionCache.findDeployedLatestDefinitionByKey(caseDefinitionKey); }
public CaseDefinitionEntity findDeployedCaseDefinitionById(String caseDefinitionId) { return caseDefinitionCache.findDeployedDefinitionById(caseDefinitionId); }
public CaseDefinitionEntity findDeployedCaseDefinitionByDeploymentAndKey(String deploymentId, String caseDefinitionKey) { return caseDefinitionCache.findDeployedDefinitionByDeploymentAndKey(deploymentId, caseDefinitionKey); }
public CaseDefinitionEntity getCaseDefinitionById(String caseDefinitionId) { checkInvalidDefinitionId(caseDefinitionId); CaseDefinitionEntity caseDefinition = getDefinition(caseDefinitionId); if (caseDefinition == null) { caseDefinition = findDeployedDefinitionById(caseDefinitionId); } return caseDefinition; }
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); }
/** * @return the latest version of the case definition with the given key and tenant id */ public CaseDefinitionEntity findDeployedLatestCaseDefinitionByKeyAndTenantId(String caseDefinitionKey, String tenantId) { return caseDefinitionCache.findDeployedLatestDefinitionByKeyAndTenantId(caseDefinitionKey, tenantId); }