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.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 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 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) org.flowable.cmmn.api.repository.CaseDefinitiongetCaseDefinition(String caseDefinitionId) getCaseDefinitions(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) org.flowable.engine.repository.ProcessDefinitiongetProcessDefinition(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) 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
-
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:
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
-
getCaseDefinition
- Specified by:
getCaseDefinitionin interfaceIndexingContext
-
getProcessDefinition
public org.flowable.engine.repository.ProcessDefinition getProcessDefinition(String processDefinitionId) - Specified by:
getProcessDefinitionin interfaceIndexingContext
-
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) -
getCaseDefinitions
-
getProcessDefinitions
-