Class IndexingContextImpl
java.lang.Object
com.flowable.platform.engine.impl.indexing.cache.IndexingContextImpl
- All Implemented Interfaces:
IndexingContext
- Author:
- Filip Hrisafov
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.flowable.platform.engine.impl.indexing.cache.IndexingContext
IndexingContext.DefinitionAndModel<Definition,Model>, IndexingContext.EntityLink, IndexingContext.IdentityLink -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Map<String, IndexingContext.DefinitionAndModel<org.flowable.cmmn.api.repository.CaseDefinition, org.flowable.cmmn.model.CmmnModel>> protected final org.flowable.common.engine.impl.interceptor.CommandContextprotected Stringprotected Stringprotected final Map<String, Map<String, Map<String, org.flowable.variable.service.impl.persistence.entity.HistoricVariableInstanceEntity>>> protected IndexingFilterIncidentReporterprotected final Map<String, Map<String, VariableIndexingFilter>> protected final IndexManagerprotected final Map<String, IndexingContext.DefinitionAndModel<org.flowable.engine.repository.ProcessDefinition, org.flowable.bpmn.model.BpmnModel>> -
Constructor Summary
ConstructorsConstructorDescriptionIndexingContextImpl(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, IndexManager indexManager, List<org.flowable.cmmn.api.history.HistoricCaseInstance> caseInstances, List<org.flowable.engine.history.HistoricProcessInstance> processInstances, List<org.flowable.task.api.history.HistoricTaskInstance> taskInstances) -
Method Summary
Modifier and TypeMethodDescriptionprotected VariableIndexingFiltercreateCaseDefinitionIndexingFilter(String caseDefinitionId) createFilter(List<String> includeList, List<String> excludeList) protected VariableIndexingFiltercreateIndexingFilter(org.flowable.bpmn.model.BpmnModel bpmnModel, String processDefinitionKey) protected VariableIndexingFiltercreateIndexingFilter(org.flowable.cmmn.model.CmmnModel cmmnModel, String caseDefinitionKey) protected VariableIndexingFiltercreateProcessDefinitionIndexingFilter(String processDefinitionId) protected Map<String, org.flowable.variable.service.impl.persistence.entity.HistoricVariableInstanceEntity> fetchHistoricVariableInstances(String scopeId, String scopeType) protected List<IndexMappingVariableExtractor> fetchIndexMappingVariableExtractors(String mappingType, String tenantId) findScopedIndexingFilter(String scopeId, String scopeType) static IndexingContextImplforCases(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, IndexManager indexManager, List<org.flowable.cmmn.api.history.HistoricCaseInstance> caseInstances) static IndexingContextImplforProcesses(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, IndexManager indexManager, List<org.flowable.engine.history.HistoricProcessInstance> processInstances) IndexingContext.DefinitionAndModel<org.flowable.cmmn.api.repository.CaseDefinition, org.flowable.cmmn.model.CmmnModel> getCaseDefinitionAndModel(String caseDefinitionId) protected static Map<String, IndexingContext.DefinitionAndModel<org.flowable.cmmn.api.repository.CaseDefinition, org.flowable.cmmn.model.CmmnModel>> getCaseDefinitionsAndModels(Set<String> definitionIds, org.flowable.common.engine.impl.interceptor.CommandContext commandContext) org.flowable.common.engine.impl.interceptor.CommandContextgetExtensionElementValues(List<T> extensionList, Function<T, String> valueSupplier) org.flowable.cmmn.api.history.HistoricCaseInstancegetHistoricCaseInstance(String caseInstanceId) org.flowable.engine.history.HistoricProcessInstancegetHistoricProcessInstance(String processInstanceId) org.flowable.task.api.history.HistoricTaskInstancegetHistoricTask(String taskInstanceId, String scopeType) getHistoricVariableInstances(String scopeId, String scopeType) getIdentityLinks(String scopeId, String scopeType) protected static Map<String, List<IndexingContext.IdentityLink>> getIdentityLinksByScope(String scopeType, Collection<String> scopeIds, org.flowable.common.engine.impl.interceptor.CommandContext commandContext) getIndexNamesForMappingType(String mappingType) protected List<IndexMappingVariableExtractor> getMappingVariableExtractors(String mappingType) getParentEntityLink(String referenceScopeId, String referenceScopeType) IndexingContext.DefinitionAndModel<org.flowable.engine.repository.ProcessDefinition, org.flowable.bpmn.model.BpmnModel> getProcessDefinitionAndModel(String processDefinitionId) protected static Map<String, IndexingContext.DefinitionAndModel<org.flowable.engine.repository.ProcessDefinition, org.flowable.bpmn.model.BpmnModel>> getProcessDefinitions(Set<String> definitionIds, org.flowable.common.engine.impl.interceptor.CommandContext commandContext) getTranslations(String scopeId, String scopeType) protected static Map<String, List<Translation>> getTranslationsByScope(String scopeType, Collection<String> scopeIds, org.flowable.common.engine.impl.interceptor.CommandContext commandContext) protected static Map<String, Map<String, org.flowable.variable.service.impl.persistence.entity.HistoricVariableInstanceEntity>> getVariablesByScope(String scopeType, Set<String> scopeIds, org.flowable.common.engine.impl.interceptor.CommandContext commandContext) voidsetCurrentMappingType(String currentMappingType) voidsetCurrentTenantId(String currentTenantId)
-
Field Details
-
commandContext
protected final org.flowable.common.engine.impl.interceptor.CommandContext commandContext -
indexManager
-
historicVariableInstancesCache
-
translationsCache
-
identityLinksCache
-
indexMappingVariableExtractorsCache
-
indexingFiltersCache
-
caseInstances
-
processInstances
-
taskInstances
-
caseDefinitionsAndModels
protected final Map<String,IndexingContext.DefinitionAndModel<org.flowable.cmmn.api.repository.CaseDefinition, caseDefinitionsAndModelsorg.flowable.cmmn.model.CmmnModel>> -
processDefinitionsAndModels
protected final Map<String,IndexingContext.DefinitionAndModel<org.flowable.engine.repository.ProcessDefinition, processDefinitionsAndModelsorg.flowable.bpmn.model.BpmnModel>> -
currentMappingType
-
currentTenantId
-
indexingFilterIncidentReporter
-
-
Constructor Details
-
IndexingContextImpl
public IndexingContextImpl(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, IndexManager indexManager, List<org.flowable.cmmn.api.history.HistoricCaseInstance> caseInstances, List<org.flowable.engine.history.HistoricProcessInstance> processInstances, List<org.flowable.task.api.history.HistoricTaskInstance> taskInstances)
-
-
Method Details
-
getTranslationsByScope
protected static Map<String,List<Translation>> getTranslationsByScope(String scopeType, Collection<String> scopeIds, org.flowable.common.engine.impl.interceptor.CommandContext commandContext) -
getHistoricProcessInstance
public org.flowable.engine.history.HistoricProcessInstance getHistoricProcessInstance(String processInstanceId) - Specified by:
getHistoricProcessInstancein interfaceIndexingContext
-
getHistoricCaseInstance
public org.flowable.cmmn.api.history.HistoricCaseInstance getHistoricCaseInstance(String caseInstanceId) - Specified by:
getHistoricCaseInstancein interfaceIndexingContext
-
getHistoricTask
public org.flowable.task.api.history.HistoricTaskInstance getHistoricTask(String taskInstanceId, String scopeType) - Specified by:
getHistoricTaskin interfaceIndexingContext
-
getCaseDefinitionsAndModels
protected static Map<String,IndexingContext.DefinitionAndModel<org.flowable.cmmn.api.repository.CaseDefinition, getCaseDefinitionsAndModelsorg.flowable.cmmn.model.CmmnModel>> (Set<String> definitionIds, org.flowable.common.engine.impl.interceptor.CommandContext commandContext) -
getProcessDefinitions
protected static Map<String,IndexingContext.DefinitionAndModel<org.flowable.engine.repository.ProcessDefinition, getProcessDefinitionsorg.flowable.bpmn.model.BpmnModel>> (Set<String> definitionIds, org.flowable.common.engine.impl.interceptor.CommandContext commandContext) -
getHistoricVariableInstances
public Map<String,org.flowable.variable.service.impl.persistence.entity.HistoricVariableInstanceEntity> getHistoricVariableInstances(String scopeId, String scopeType) - Specified by:
getHistoricVariableInstancesin interfaceIndexingContext
-
fetchHistoricVariableInstances
-
getTranslations
- Specified by:
getTranslationsin interfaceIndexingContext
-
getIdentityLinks
- Specified by:
getIdentityLinksin interfaceIndexingContext
-
getIndexMappingVariableExtractors
- Specified by:
getIndexMappingVariableExtractorsin interfaceIndexingContext
-
fetchIndexMappingVariableExtractors
protected List<IndexMappingVariableExtractor> fetchIndexMappingVariableExtractors(String mappingType, String tenantId) -
getIndexNamesForMappingType
-
getMappingVariableExtractors
-
findScopedIndexingFilter
- Specified by:
findScopedIndexingFilterin interfaceIndexingContext
-
createProcessDefinitionIndexingFilter
-
createCaseDefinitionIndexingFilter
-
createIndexingFilter
protected VariableIndexingFilter createIndexingFilter(org.flowable.bpmn.model.BpmnModel bpmnModel, String processDefinitionKey) -
createIndexingFilter
protected VariableIndexingFilter createIndexingFilter(org.flowable.cmmn.model.CmmnModel cmmnModel, String caseDefinitionKey) -
getExtensionElementValues
-
createFilter
-
getParentEntityLink
public IndexingContext.EntityLink getParentEntityLink(String referenceScopeId, String referenceScopeType) - Specified by:
getParentEntityLinkin interfaceIndexingContext
-
getCommandContext
public org.flowable.common.engine.impl.interceptor.CommandContext getCommandContext()- Specified by:
getCommandContextin interfaceIndexingContext
-
setCurrentMappingType
-
getCurrentTenantId
- Specified by:
getCurrentTenantIdin interfaceIndexingContext
-
setCurrentTenantId
-
forCases
public static IndexingContextImpl forCases(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, IndexManager indexManager, List<org.flowable.cmmn.api.history.HistoricCaseInstance> caseInstances) -
forProcesses
public static IndexingContextImpl forProcesses(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, IndexManager indexManager, List<org.flowable.engine.history.HistoricProcessInstance> processInstances) -
getIndexingFilterIncidentReporter
- Specified by:
getIndexingFilterIncidentReporterin interfaceIndexingContext
-
getVariablesByScope
-
getIdentityLinksByScope
protected static Map<String,List<IndexingContext.IdentityLink>> getIdentityLinksByScope(String scopeType, Collection<String> scopeIds, org.flowable.common.engine.impl.interceptor.CommandContext commandContext) -
getCaseDefinitionAndModel
public IndexingContext.DefinitionAndModel<org.flowable.cmmn.api.repository.CaseDefinition,org.flowable.cmmn.model.CmmnModel> getCaseDefinitionAndModel(String caseDefinitionId) - Specified by:
getCaseDefinitionAndModelin interfaceIndexingContext
-
getProcessDefinitionAndModel
public IndexingContext.DefinitionAndModel<org.flowable.engine.repository.ProcessDefinition,org.flowable.bpmn.model.BpmnModel> getProcessDefinitionAndModel(String processDefinitionId) - Specified by:
getProcessDefinitionAndModelin interfaceIndexingContext
-