Class DeploymentCache
java.lang.Object
org.camunda.bpm.engine.impl.persistence.deploy.cache.DeploymentCache
- Author:
- Tom Baeyens, Falko Menge
-
Field Summary
Modifier and TypeFieldDescriptionprotected BpmnModelInstanceCache
protected CacheDeployer
protected CamundaFormDefinitionCache
protected CaseDefinitionCache
protected CmmnModelInstanceCache
protected DecisionDefinitionCache
protected DecisionRequirementsDefinitionCache
protected DmnModelInstanceCache
protected ProcessDefinitionCache
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCamundaFormDefinition
(CamundaFormDefinitionEntity camundaFormDefinition) void
addCaseDefinition
(CaseDefinitionEntity caseDefinition) void
addDecisionDefinition
(DecisionDefinitionEntity decisionDefinition) void
addDecisionRequirementsDefinition
(DecisionRequirementsDefinitionEntity decisionRequirementsDefinition) void
addProcessDefinition
(ProcessDefinitionEntity processDefinition) void
deploy
(DeploymentEntity deployment) void
void
void
void
void
findBpmnModelInstanceForProcessDefinition
(String processDefinitionId) findBpmnModelInstanceForProcessDefinition
(ProcessDefinitionEntity processDefinitionEntity) findCaseDefinitionFromCache
(String caseDefinitionId) findCmmnModelInstanceForCaseDefinition
(String caseDefinitionId) findDecisionDefinitionFromCache
(String decisionDefinitionId) findDecisionRequirementsDefinitionFromCache
(String decisionRequirementsDefinitionId) findDeployedCaseDefinitionByDeploymentAndKey
(String deploymentId, String caseDefinitionKey) findDeployedCaseDefinitionById
(String caseDefinitionId) findDeployedCaseDefinitionByKeyVersionAndTenantId
(String caseDefinitionKey, Integer caseDefinitionVersion, String tenantId) findDeployedDecisionDefinitionByDeploymentAndKey
(String deploymentId, String decisionDefinitionKey) findDeployedDecisionDefinitionById
(String decisionDefinitionId) findDeployedDecisionDefinitionByKeyAndVersion
(String decisionDefinitionKey, Integer decisionDefinitionVersion) findDeployedDecisionDefinitionByKeyVersionAndTenantId
(String decisionDefinitionKey, Integer decisionDefinitionVersion, String tenantId) findDeployedDecisionDefinitionByKeyVersionTagAndTenantId
(String decisionDefinitionKey, String decisionDefinitionVersionTag, String tenantId) findDeployedDecisionRequirementsDefinitionById
(String decisionRequirementsDefinitionId) findDeployedLatestCaseDefinitionByKey
(String caseDefinitionKey) findDeployedLatestCaseDefinitionByKeyAndTenantId
(String caseDefinitionKey, String tenantId) findDeployedLatestDecisionDefinitionByKey
(String decisionDefinitionKey) findDeployedLatestDecisionDefinitionByKeyAndTenantId
(String decisionDefinitionKey, String tenantId) findDeployedLatestProcessDefinitionByKey
(String processDefinitionKey) findDeployedLatestProcessDefinitionByKeyAndTenantId
(String processDefinitionKey, String tenantId) findDeployedProcessDefinitionByDeploymentAndKey
(String deploymentId, String processDefinitionKey) findDeployedProcessDefinitionById
(String processDefinitionId) findDeployedProcessDefinitionByKeyVersionAndTenantId
(String processDefinitionKey, Integer processDefinitionVersion, String tenantId) findDeployedProcessDefinitionByKeyVersionTagAndTenantId
(String processDefinitionKey, String processDefinitionVersionTag, String tenantId) findDmnModelInstanceForDecisionDefinition
(String decisionDefinitionId) findProcessDefinitionFromCache
(String processDefinitionId) getCaseDefinitionById
(String caseDefinitionId) protected void
removeAllDecisionRequirementsDefinitionsByDeploymentId
(String deploymentId) void
removeCamundaFormDefinition
(String camundaFormDefinitionId) void
removeCaseDefinition
(String caseDefinitionId) void
removeDecisionDefinition
(String decisionDefinitionId) void
removeDecisionRequirementsDefinition
(String decisionRequirementsDefinitionId) void
removeDeployment
(String deploymentId) void
removeProcessDefinition
(String processDefinitionId) resolveCaseDefinition
(CaseDefinitionEntity caseDefinition) resolveDecisionDefinition
(DecisionDefinitionEntity decisionDefinition) resolveDecisionRequirementsDefinition
(DecisionRequirementsDefinitionEntity decisionRequirementsDefinition) resolveProcessDefinition
(ProcessDefinitionEntity processDefinition) void
setDeployers
(List<Deployer> deployers)
-
Field Details
-
processDefinitionEntityCache
-
caseDefinitionCache
-
decisionDefinitionCache
-
decisionRequirementsDefinitionCache
-
camundaFormDefinitionCache
-
bpmnModelInstanceCache
-
cmmnModelInstanceCache
-
dmnModelInstanceCache
-
cacheDeployer
-
-
Constructor Details
-
DeploymentCache
-
-
Method Details
-
deploy
-
findProcessDefinitionFromCache
-
findDeployedProcessDefinitionById
-
findDeployedLatestProcessDefinitionByKey
public ProcessDefinitionEntity findDeployedLatestProcessDefinitionByKey(String processDefinitionKey) - Returns:
- 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 Also:
-
findDeployedLatestProcessDefinitionByKeyAndTenantId
public ProcessDefinitionEntity findDeployedLatestProcessDefinitionByKeyAndTenantId(String processDefinitionKey, String tenantId) - Returns:
- the latest version of the process definition with the given key and tenant id
-
findDeployedProcessDefinitionByKeyVersionAndTenantId
public ProcessDefinitionEntity findDeployedProcessDefinitionByKeyVersionAndTenantId(String processDefinitionKey, Integer processDefinitionVersion, String tenantId) -
findDeployedProcessDefinitionByKeyVersionTagAndTenantId
public ProcessDefinitionEntity findDeployedProcessDefinitionByKeyVersionTagAndTenantId(String processDefinitionKey, String processDefinitionVersionTag, String tenantId) -
findDeployedProcessDefinitionByDeploymentAndKey
public ProcessDefinitionEntity findDeployedProcessDefinitionByDeploymentAndKey(String deploymentId, String processDefinitionKey) -
resolveProcessDefinition
-
findBpmnModelInstanceForProcessDefinition
public BpmnModelInstance findBpmnModelInstanceForProcessDefinition(ProcessDefinitionEntity processDefinitionEntity) -
findBpmnModelInstanceForProcessDefinition
-
addProcessDefinition
-
removeProcessDefinition
-
discardProcessDefinitionCache
public void discardProcessDefinitionCache() -
addCamundaFormDefinition
-
removeCamundaFormDefinition
-
discardCamundaFormDefinitionCache
public void discardCamundaFormDefinitionCache() -
findCaseDefinitionFromCache
-
findDeployedCaseDefinitionById
-
findDeployedLatestCaseDefinitionByKey
- Returns:
- 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 Also:
-
findDeployedLatestCaseDefinitionByKeyAndTenantId
public CaseDefinitionEntity findDeployedLatestCaseDefinitionByKeyAndTenantId(String caseDefinitionKey, String tenantId) - Returns:
- the latest version of the case definition with the given key and tenant id
-
findDeployedCaseDefinitionByKeyVersionAndTenantId
public CaseDefinitionEntity findDeployedCaseDefinitionByKeyVersionAndTenantId(String caseDefinitionKey, Integer caseDefinitionVersion, String tenantId) -
findDeployedCaseDefinitionByDeploymentAndKey
public CaseDefinitionEntity findDeployedCaseDefinitionByDeploymentAndKey(String deploymentId, String caseDefinitionKey) -
getCaseDefinitionById
-
resolveCaseDefinition
-
findCmmnModelInstanceForCaseDefinition
-
addCaseDefinition
-
removeCaseDefinition
-
discardCaseDefinitionCache
public void discardCaseDefinitionCache() -
findDecisionDefinitionFromCache
-
findDeployedDecisionDefinitionById
-
findDeployedLatestDecisionDefinitionByKey
-
findDeployedLatestDecisionDefinitionByKeyAndTenantId
public DecisionDefinition findDeployedLatestDecisionDefinitionByKeyAndTenantId(String decisionDefinitionKey, String tenantId) -
findDeployedDecisionDefinitionByDeploymentAndKey
public DecisionDefinition findDeployedDecisionDefinitionByDeploymentAndKey(String deploymentId, String decisionDefinitionKey) -
findDeployedDecisionDefinitionByKeyAndVersion
public DecisionDefinition findDeployedDecisionDefinitionByKeyAndVersion(String decisionDefinitionKey, Integer decisionDefinitionVersion) -
findDeployedDecisionDefinitionByKeyVersionAndTenantId
public DecisionDefinition findDeployedDecisionDefinitionByKeyVersionAndTenantId(String decisionDefinitionKey, Integer decisionDefinitionVersion, String tenantId) -
findDeployedDecisionDefinitionByKeyVersionTagAndTenantId
public DecisionDefinition findDeployedDecisionDefinitionByKeyVersionTagAndTenantId(String decisionDefinitionKey, String decisionDefinitionVersionTag, String tenantId) -
resolveDecisionDefinition
public DecisionDefinitionEntity resolveDecisionDefinition(DecisionDefinitionEntity decisionDefinition) -
findDmnModelInstanceForDecisionDefinition
-
addDecisionDefinition
-
removeDecisionDefinition
-
discardDecisionDefinitionCache
public void discardDecisionDefinitionCache() -
addDecisionRequirementsDefinition
public void addDecisionRequirementsDefinition(DecisionRequirementsDefinitionEntity decisionRequirementsDefinition) -
findDecisionRequirementsDefinitionFromCache
public DecisionRequirementsDefinitionEntity findDecisionRequirementsDefinitionFromCache(String decisionRequirementsDefinitionId) -
findDeployedDecisionRequirementsDefinitionById
public DecisionRequirementsDefinitionEntity findDeployedDecisionRequirementsDefinitionById(String decisionRequirementsDefinitionId) -
resolveDecisionRequirementsDefinition
public DecisionRequirementsDefinitionEntity resolveDecisionRequirementsDefinition(DecisionRequirementsDefinitionEntity decisionRequirementsDefinition) -
discardDecisionRequirementsDefinitionCache
public void discardDecisionRequirementsDefinitionCache() -
removeDecisionRequirementsDefinition
-
getBpmnModelInstanceCache
-
getCmmnModelInstanceCache
-
getDmnDefinitionCache
-
getDecisionDefinitionCache
-
getDecisionRequirementsDefinitionCache
-
getProcessDefinitionCache
-
getCaseDefinitionCache
-
setDeployers
-
removeDeployment
-
removeAllDecisionRequirementsDefinitionsByDeploymentId
-
purgeCache
-