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.EntityLink, IndexingContext.IdentityLink
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.flowable.common.engine.impl.interceptor.CommandContext
protected String
protected String
protected final Map
<String, Map<String, Map<String, org.flowable.variable.service.impl.persistence.entity.HistoricVariableInstanceEntity>>> protected IndexingFilterIncidentReporter
protected final Map
<String, Map<String, VariableIndexingFilter>> protected final IndexManager
-
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 VariableIndexingFilter
createCaseDefinitionIndexingFilter
(String caseDefinitionId) createFilter
(List<String> includeList, List<String> excludeList) protected VariableIndexingFilter
createIndexingFilter
(org.flowable.bpmn.model.BpmnModel bpmnModel, String processDefinitionKey) protected VariableIndexingFilter
createIndexingFilter
(org.flowable.cmmn.model.CmmnModel cmmnModel, String caseDefinitionKey) protected VariableIndexingFilter
createProcessDefinitionIndexingFilter
(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 IndexingContextImpl
forCases
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, IndexManager indexManager, List<org.flowable.cmmn.api.history.HistoricCaseInstance> caseInstances) static IndexingContextImpl
forProcesses
(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, IndexManager indexManager, List<org.flowable.engine.history.HistoricProcessInstance> processInstances) org.flowable.cmmn.api.repository.CaseDefinition
getCaseDefinition
(String caseDefinitionId) getCaseDefinitions
(Set<String> definitionIds, org.flowable.common.engine.impl.interceptor.CommandContext commandContext) org.flowable.common.engine.impl.interceptor.CommandContext
getExtensionElementValues
(List<T> extensionList, Function<T, String> valueSupplier) org.flowable.cmmn.api.history.HistoricCaseInstance
getHistoricCaseInstance
(String caseInstanceId) org.flowable.engine.history.HistoricProcessInstance
getHistoricProcessInstance
(String processInstanceId) org.flowable.task.api.history.HistoricTaskInstance
getHistoricTask
(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) org.flowable.engine.repository.ProcessDefinition
getProcessDefinition
(String processDefinitionId) 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) void
setCurrentMappingType
(String currentMappingType) void
setCurrentTenantId
(String currentTenantId)
-
Field Details
-
commandContext
protected final org.flowable.common.engine.impl.interceptor.CommandContext commandContext -
indexManager
-
historicVariableInstancesCache
-
translationsCache
-
identityLinksCache
-
indexMappingVariableExtractorsCache
-
indexingFiltersCache
-
caseInstances
-
processInstances
-
taskInstances
-
caseDefinitions
-
processDefinitions
-
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:
getHistoricProcessInstance
in interfaceIndexingContext
-
getHistoricCaseInstance
public org.flowable.cmmn.api.history.HistoricCaseInstance getHistoricCaseInstance(String caseInstanceId) - Specified by:
getHistoricCaseInstance
in interfaceIndexingContext
-
getHistoricTask
public org.flowable.task.api.history.HistoricTaskInstance getHistoricTask(String taskInstanceId, String scopeType) - Specified by:
getHistoricTask
in interfaceIndexingContext
-
getCaseDefinition
- Specified by:
getCaseDefinition
in interfaceIndexingContext
-
getProcessDefinition
public org.flowable.engine.repository.ProcessDefinition getProcessDefinition(String processDefinitionId) - Specified by:
getProcessDefinition
in interfaceIndexingContext
-
getHistoricVariableInstances
public Map<String,org.flowable.variable.service.impl.persistence.entity.HistoricVariableInstanceEntity> getHistoricVariableInstances(String scopeId, String scopeType) - Specified by:
getHistoricVariableInstances
in interfaceIndexingContext
-
fetchHistoricVariableInstances
-
getTranslations
- Specified by:
getTranslations
in interfaceIndexingContext
-
getIdentityLinks
- Specified by:
getIdentityLinks
in interfaceIndexingContext
-
getIndexMappingVariableExtractors
- Specified by:
getIndexMappingVariableExtractors
in interfaceIndexingContext
-
fetchIndexMappingVariableExtractors
protected List<IndexMappingVariableExtractor> fetchIndexMappingVariableExtractors(String mappingType, String tenantId) -
getIndexNamesForMappingType
-
getMappingVariableExtractors
-
findScopedIndexingFilter
- Specified by:
findScopedIndexingFilter
in 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:
getParentEntityLink
in interfaceIndexingContext
-
getCommandContext
public org.flowable.common.engine.impl.interceptor.CommandContext getCommandContext()- Specified by:
getCommandContext
in interfaceIndexingContext
-
setCurrentMappingType
-
getCurrentTenantId
- Specified by:
getCurrentTenantId
in 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:
getIndexingFilterIncidentReporter
in interfaceIndexingContext
-
getVariablesByScope
-
getIdentityLinksByScope
protected static Map<String,List<IndexingContext.IdentityLink>> getIdentityLinksByScope(String scopeType, Collection<String> scopeIds, org.flowable.common.engine.impl.interceptor.CommandContext commandContext) -
getCaseDefinitions
-
getProcessDefinitions
-