Class PlatformReindexServiceImpl
java.lang.Object
com.flowable.platform.service.index.PlatformReindexServiceImpl
- All Implemented Interfaces:
PlatformReindexService
,SynchronousPlatformReindexService
public class PlatformReindexServiceImpl
extends Object
implements PlatformReindexService, SynchronousPlatformReindexService
-
Field Summary
Modifier and TypeFieldDescriptionprotected ActivityIndexingScheduler
protected CaseInstanceIndexingScheduler
protected CmmnEngine
protected ContentItemIndexingScheduler
protected CoreContentService
protected Collection<String>
protected PlanItemInstanceIndexingScheduler
protected ProcessEngine
protected ProcessInstanceIndexingScheduler
protected ReindexManager
protected TaskIndexingScheduler
protected WorkIndexingScheduler
-
Constructor Summary
ConstructorDescriptionPlatformReindexServiceImpl
(ProcessEngine processEngine, CmmnEngine cmmnEngine, CoreContentService contentService, ReindexManager reindexManager, ProcessInstanceIndexingScheduler processInstanceIndexingScheduler, CaseInstanceIndexingScheduler caseInstanceIndexingScheduler, TaskIndexingScheduler taskIndexingScheduler, PlanItemInstanceIndexingScheduler planItemInstanceIndexingScheduler, WorkIndexingScheduler workIndexingScheduler, ActivityIndexingScheduler activityIndexingScheduler, ContentItemIndexingScheduler contentItemIndexingScheduler, Collection<String> enabledIndices) -
Method Summary
Modifier and TypeMethodDescriptionboolean
isIndexingDisabled
(String index) Checks if indexing is disabled for the provided index.void
Reindex all process activity instances in the database.void
reindexActivity
(String activityInstanceId) Reindex one activity instance.void
reindexCaseInstance
(String caseInstanceId) Reindex one case instance.void
Reindex all case instances in the database.void
reindexContentItem
(String contentItemId) Reindex one content item.void
Reindex all content items in the database.void
reindexPlanItemInstance
(String planItemInstanceId) Reindex one plan item instance.void
Reindex all plan item instances in the database.void
reindexProcessInstance
(String processInstanceId) Reindex one process instance.void
Reindex all process instances in the database.void
reindexTask
(String taskId) Reindex one task.void
Reindex all tasks in the database.void
Reindex all work instances (i.e.void
void
synchronousReindexActivity
(String activityInstanceId) void
synchronousReindexCaseInstance
(String caseInstanceId) void
void
synchronousReindexContentItem
(String contentItemId) void
void
synchronousReindexPlanItemInstance
(String planItemInstanceId) void
void
synchronousReindexProcessInstance
(String processInstanceId) void
void
synchronousReindexTask
(String taskId) void
void
void
synchronousReindexWorkCaseInstance
(String caseInstanceId) void
synchronousReindexWorkProcessInstance
(String processInstanceId)
-
Field Details
-
processEngine
-
cmmnEngine
-
contentService
-
reindexManager
-
processInstanceIndexingScheduler
-
caseInstanceIndexingScheduler
-
planItemInstanceIndexingScheduler
-
taskIndexingScheduler
-
workIndexingScheduler
-
activityIndexingScheduler
-
contentItemIndexingScheduler
-
enabledIndices
-
-
Constructor Details
-
PlatformReindexServiceImpl
public PlatformReindexServiceImpl(ProcessEngine processEngine, CmmnEngine cmmnEngine, CoreContentService contentService, ReindexManager reindexManager, ProcessInstanceIndexingScheduler processInstanceIndexingScheduler, CaseInstanceIndexingScheduler caseInstanceIndexingScheduler, TaskIndexingScheduler taskIndexingScheduler, PlanItemInstanceIndexingScheduler planItemInstanceIndexingScheduler, WorkIndexingScheduler workIndexingScheduler, ActivityIndexingScheduler activityIndexingScheduler, ContentItemIndexingScheduler contentItemIndexingScheduler, Collection<String> enabledIndices)
-
-
Method Details
-
reindexProcessInstances
Description copied from interface:PlatformReindexService
Reindex all process instances in the database. A new index will be created, filled with the data and the alias is swapped to this new index at the end of the operation This method will return immediately, but the indexing will happen asynchronously on a background thread.- Specified by:
reindexProcessInstances
in interfacePlatformReindexService
-
synchronousReindexProcessInstances
public void synchronousReindexProcessInstances()- Specified by:
synchronousReindexProcessInstances
in interfaceSynchronousPlatformReindexService
-
reindexProcessInstance
Description copied from interface:PlatformReindexService
Reindex one process instance. This method, contrary toPlatformReindexService.reindexProcessInstance(String)
runs synchronously. If the process instance is a root process instance, data changes will be propagated to all children.- Specified by:
reindexProcessInstance
in interfacePlatformReindexService
-
synchronousReindexProcessInstance
- Specified by:
synchronousReindexProcessInstance
in interfaceSynchronousPlatformReindexService
-
reindexCaseInstances
Description copied from interface:PlatformReindexService
Reindex all case instances in the database. A new index will be created, filled with the data and the alias is swapped to this new index at the end of the operation This method will return immediately, but the indexing will happen asynchronously on a background thread.- Specified by:
reindexCaseInstances
in interfacePlatformReindexService
-
synchronousReindexCaseInstances
public void synchronousReindexCaseInstances()- Specified by:
synchronousReindexCaseInstances
in interfaceSynchronousPlatformReindexService
-
reindexCaseInstance
Description copied from interface:PlatformReindexService
Reindex one case instance. This method, contrary toPlatformReindexService.reindexCaseInstance(String)
runs synchronously. If the process instance is a root process instance, data changes will be propagated to all children.- Specified by:
reindexCaseInstance
in interfacePlatformReindexService
-
synchronousReindexCaseInstance
- Specified by:
synchronousReindexCaseInstance
in interfaceSynchronousPlatformReindexService
-
reindexPlanItemInstances
Description copied from interface:PlatformReindexService
Reindex all plan item instances in the database. A new index will be created, filled with the data and the alias is swapped to this new index at the end of the operation This method will return immediately, but the indexing will happen asynchronously on a background thread.- Specified by:
reindexPlanItemInstances
in interfacePlatformReindexService
-
synchronousReindexPlanItemInstances
public void synchronousReindexPlanItemInstances()- Specified by:
synchronousReindexPlanItemInstances
in interfaceSynchronousPlatformReindexService
-
reindexPlanItemInstance
Description copied from interface:PlatformReindexService
Reindex one plan item instance. This method, contrary toPlatformReindexService.reindexCaseInstance(String)
runs synchronously.- Specified by:
reindexPlanItemInstance
in interfacePlatformReindexService
-
synchronousReindexPlanItemInstance
- Specified by:
synchronousReindexPlanItemInstance
in interfaceSynchronousPlatformReindexService
-
reindexTasks
Description copied from interface:PlatformReindexService
Reindex all tasks in the database. A new index will be created, filled with the data and the alias is swapped to this new index at the end of the operation This method will return immediately, but the indexing will happen asynchronously on a background thread.- Specified by:
reindexTasks
in interfacePlatformReindexService
-
synchronousReindexTasks
public void synchronousReindexTasks()- Specified by:
synchronousReindexTasks
in interfaceSynchronousPlatformReindexService
-
reindexTask
Description copied from interface:PlatformReindexService
Reindex one task. This method, contrary toPlatformReindexService.reindexCaseInstance(String)
runs synchronously.- Specified by:
reindexTask
in interfacePlatformReindexService
-
synchronousReindexTask
- Specified by:
synchronousReindexTask
in interfaceSynchronousPlatformReindexService
-
reindexWork
Description copied from interface:PlatformReindexService
Reindex all work instances (i.e. root process and case instances) in the database. A new index will be created, filled with the data and the alias is swapped to this new index at the end of the operation This method will return immediately, but the indexing will happen asynchronously on a background thread. There is no 'single work instance' reindex method. This is done by callingPlatformReindexService.reindexProcessInstance(String)
orPlatformReindexService.reindexCaseInstance(String)
, which will update the work index if the instance is a root instance.- Specified by:
reindexWork
in interfacePlatformReindexService
-
isIndexingDisabled
Description copied from interface:PlatformReindexService
Checks if indexing is disabled for the provided index. This method runs synchronously.- Specified by:
isIndexingDisabled
in interfacePlatformReindexService
- Returns:
- true if the indexing is disabled.
-
synchronousReindexWork
public void synchronousReindexWork()- Specified by:
synchronousReindexWork
in interfaceSynchronousPlatformReindexService
-
synchronousReindexWorkProcessInstance
- Specified by:
synchronousReindexWorkProcessInstance
in interfaceSynchronousPlatformReindexService
-
synchronousReindexWorkCaseInstance
- Specified by:
synchronousReindexWorkCaseInstance
in interfaceSynchronousPlatformReindexService
-
reindexActivities
Description copied from interface:PlatformReindexService
Reindex all process activity instances in the database. A new index will be created, filled with the data and the alias is swapped to this new index at the end of the operation This method will return immediately, but the indexing will happen asynchronously on a background thread.- Specified by:
reindexActivities
in interfacePlatformReindexService
-
synchronousReindexActivities
public void synchronousReindexActivities()- Specified by:
synchronousReindexActivities
in interfaceSynchronousPlatformReindexService
-
reindexActivity
Description copied from interface:PlatformReindexService
Reindex one activity instance. This method, contrary toPlatformReindexService.reindexCaseInstance(String)
runs synchronously.- Specified by:
reindexActivity
in interfacePlatformReindexService
-
synchronousReindexActivity
- Specified by:
synchronousReindexActivity
in interfaceSynchronousPlatformReindexService
-
reindexContentItems
Description copied from interface:PlatformReindexService
Reindex all content items in the database. A new index will be created, filled with the data and the alias is swapped to this new index at the end of the operation This method will return immediately, but the indexing will happen asynchronously on a background thread.- Specified by:
reindexContentItems
in interfacePlatformReindexService
-
synchronousReindexContentItems
public void synchronousReindexContentItems()- Specified by:
synchronousReindexContentItems
in interfaceSynchronousPlatformReindexService
-
reindexContentItem
Description copied from interface:PlatformReindexService
Reindex one content item. This method, contrary toPlatformReindexService.reindexCaseInstance(String)
runs synchronously.- Specified by:
reindexContentItem
in interfacePlatformReindexService
-
synchronousReindexContentItem
- Specified by:
synchronousReindexContentItem
in interfaceSynchronousPlatformReindexService
-