Class PlatformReindexServiceImpl
- java.lang.Object
-
- com.flowable.platform.service.index.PlatformReindexServiceImpl
-
- All Implemented Interfaces:
PlatformReindexService,SynchronousPlatformReindexService
public class PlatformReindexServiceImpl extends java.lang.Object implements PlatformReindexService, SynchronousPlatformReindexService
-
-
Field Summary
Fields Modifier and Type Field Description protected ActivityIndexingScheduleractivityIndexingSchedulerprotected CaseInstanceIndexingSchedulercaseInstanceIndexingSchedulerprotected org.flowable.cmmn.engine.CmmnEnginecmmnEngineprotected ContentItemIndexingSchedulercontentItemIndexingSchedulerprotected com.flowable.core.content.api.CoreContentServicecontentServiceprotected PlanItemInstanceIndexingSchedulerplanItemInstanceIndexingSchedulerprotected org.flowable.engine.ProcessEngineprocessEngineprotected ProcessInstanceIndexingSchedulerprocessInstanceIndexingSchedulerprotected ReindexManagerreindexManagerprotected TaskIndexingSchedulertaskIndexingSchedulerprotected WorkIndexingSchedulerworkIndexingScheduler
-
Constructor Summary
Constructors Constructor Description PlatformReindexServiceImpl(org.flowable.engine.ProcessEngine processEngine, org.flowable.cmmn.engine.CmmnEngine cmmnEngine, com.flowable.core.content.api.CoreContentService contentService, ReindexManager reindexManager, ProcessInstanceIndexingScheduler processInstanceIndexingScheduler, CaseInstanceIndexingScheduler caseInstanceIndexingScheduler, TaskIndexingScheduler taskIndexingScheduler, PlanItemInstanceIndexingScheduler planItemInstanceIndexingScheduler, WorkIndexingScheduler workIndexingScheduler, ActivityIndexingScheduler activityIndexingScheduler, ContentItemIndexingScheduler contentItemIndexingScheduler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreindexActivities()Reindex all process activity instances in the database.voidreindexActivity(java.lang.String activityInstanceId)Reindex one activity instance.voidreindexCaseInstance(java.lang.String caseInstanceId)Reindex one case instance.voidreindexCaseInstances()Reindex all case instances in the database.voidreindexContentItem(java.lang.String contentItemId)Reindex one content item.voidreindexContentItems()Reindex all content items in the database.voidreindexPlanItemInstance(java.lang.String planItemInstanceId)Reindex one plan item instance.voidreindexPlanItemInstances()Reindex all plan item instances in the database.voidreindexProcessInstance(java.lang.String processInstanceId)Reindex one process instance.voidreindexProcessInstances()Reindex all process instances in the database.voidreindexTask(java.lang.String taskId)Reindex one task.voidreindexTasks()Reindex all tasks in the database.voidreindexWork()Reindex all work instances (i.e.voidsynchronousReindexActivities()voidsynchronousReindexActivity(java.lang.String activityInstanceId)voidsynchronousReindexCaseInstance(java.lang.String caseInstanceId)voidsynchronousReindexCaseInstances()voidsynchronousReindexContentItem(java.lang.String contentItemId)voidsynchronousReindexContentItems()voidsynchronousReindexPlanItemInstance(java.lang.String planItemInstanceId)voidsynchronousReindexPlanItemInstances()voidsynchronousReindexProcessInstance(java.lang.String processInstanceId)voidsynchronousReindexProcessInstances()voidsynchronousReindexTask(java.lang.String taskId)voidsynchronousReindexTasks()voidsynchronousReindexWork()voidsynchronousReindexWorkCaseInstance(java.lang.String caseInstanceId)voidsynchronousReindexWorkProcessInstance(java.lang.String processInstanceId)
-
-
-
Field Detail
-
processEngine
protected org.flowable.engine.ProcessEngine processEngine
-
cmmnEngine
protected org.flowable.cmmn.engine.CmmnEngine cmmnEngine
-
contentService
protected com.flowable.core.content.api.CoreContentService contentService
-
reindexManager
protected ReindexManager reindexManager
-
processInstanceIndexingScheduler
protected ProcessInstanceIndexingScheduler processInstanceIndexingScheduler
-
caseInstanceIndexingScheduler
protected CaseInstanceIndexingScheduler caseInstanceIndexingScheduler
-
planItemInstanceIndexingScheduler
protected PlanItemInstanceIndexingScheduler planItemInstanceIndexingScheduler
-
taskIndexingScheduler
protected TaskIndexingScheduler taskIndexingScheduler
-
workIndexingScheduler
protected WorkIndexingScheduler workIndexingScheduler
-
activityIndexingScheduler
protected ActivityIndexingScheduler activityIndexingScheduler
-
contentItemIndexingScheduler
protected ContentItemIndexingScheduler contentItemIndexingScheduler
-
-
Constructor Detail
-
PlatformReindexServiceImpl
public PlatformReindexServiceImpl(org.flowable.engine.ProcessEngine processEngine, org.flowable.cmmn.engine.CmmnEngine cmmnEngine, com.flowable.core.content.api.CoreContentService contentService, ReindexManager reindexManager, ProcessInstanceIndexingScheduler processInstanceIndexingScheduler, CaseInstanceIndexingScheduler caseInstanceIndexingScheduler, TaskIndexingScheduler taskIndexingScheduler, PlanItemInstanceIndexingScheduler planItemInstanceIndexingScheduler, WorkIndexingScheduler workIndexingScheduler, ActivityIndexingScheduler activityIndexingScheduler, ContentItemIndexingScheduler contentItemIndexingScheduler)
-
-
Method Detail
-
reindexProcessInstances
@Async public void reindexProcessInstances()
Description copied from interface:PlatformReindexServiceReindex 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:
reindexProcessInstancesin interfacePlatformReindexService
-
synchronousReindexProcessInstances
public void synchronousReindexProcessInstances()
- Specified by:
synchronousReindexProcessInstancesin interfaceSynchronousPlatformReindexService
-
reindexProcessInstance
@Async public void reindexProcessInstance(java.lang.String processInstanceId)
Description copied from interface:PlatformReindexServiceReindex 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:
reindexProcessInstancein interfacePlatformReindexService
-
synchronousReindexProcessInstance
public void synchronousReindexProcessInstance(java.lang.String processInstanceId)
- Specified by:
synchronousReindexProcessInstancein interfaceSynchronousPlatformReindexService
-
reindexCaseInstances
@Async public void reindexCaseInstances()
Description copied from interface:PlatformReindexServiceReindex 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:
reindexCaseInstancesin interfacePlatformReindexService
-
synchronousReindexCaseInstances
public void synchronousReindexCaseInstances()
- Specified by:
synchronousReindexCaseInstancesin interfaceSynchronousPlatformReindexService
-
reindexCaseInstance
@Async public void reindexCaseInstance(java.lang.String caseInstanceId)
Description copied from interface:PlatformReindexServiceReindex 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:
reindexCaseInstancein interfacePlatformReindexService
-
synchronousReindexCaseInstance
public void synchronousReindexCaseInstance(java.lang.String caseInstanceId)
- Specified by:
synchronousReindexCaseInstancein interfaceSynchronousPlatformReindexService
-
reindexPlanItemInstances
@Async public void reindexPlanItemInstances()
Description copied from interface:PlatformReindexServiceReindex 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:
reindexPlanItemInstancesin interfacePlatformReindexService
-
synchronousReindexPlanItemInstances
public void synchronousReindexPlanItemInstances()
- Specified by:
synchronousReindexPlanItemInstancesin interfaceSynchronousPlatformReindexService
-
reindexPlanItemInstance
@Async public void reindexPlanItemInstance(java.lang.String planItemInstanceId)
Description copied from interface:PlatformReindexServiceReindex one plan item instance. This method, contrary toPlatformReindexService.reindexCaseInstance(String)runs synchronously.- Specified by:
reindexPlanItemInstancein interfacePlatformReindexService
-
synchronousReindexPlanItemInstance
public void synchronousReindexPlanItemInstance(java.lang.String planItemInstanceId)
- Specified by:
synchronousReindexPlanItemInstancein interfaceSynchronousPlatformReindexService
-
reindexTasks
@Async public void reindexTasks()
Description copied from interface:PlatformReindexServiceReindex 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:
reindexTasksin interfacePlatformReindexService
-
synchronousReindexTasks
public void synchronousReindexTasks()
- Specified by:
synchronousReindexTasksin interfaceSynchronousPlatformReindexService
-
reindexTask
@Async public void reindexTask(java.lang.String taskId)
Description copied from interface:PlatformReindexServiceReindex one task. This method, contrary toPlatformReindexService.reindexCaseInstance(String)runs synchronously.- Specified by:
reindexTaskin interfacePlatformReindexService
-
synchronousReindexTask
public void synchronousReindexTask(java.lang.String taskId)
- Specified by:
synchronousReindexTaskin interfaceSynchronousPlatformReindexService
-
reindexWork
@Async public void reindexWork()
Description copied from interface:PlatformReindexServiceReindex 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:
reindexWorkin interfacePlatformReindexService
-
synchronousReindexWork
public void synchronousReindexWork()
- Specified by:
synchronousReindexWorkin interfaceSynchronousPlatformReindexService
-
synchronousReindexWorkProcessInstance
public void synchronousReindexWorkProcessInstance(java.lang.String processInstanceId)
- Specified by:
synchronousReindexWorkProcessInstancein interfaceSynchronousPlatformReindexService
-
synchronousReindexWorkCaseInstance
public void synchronousReindexWorkCaseInstance(java.lang.String caseInstanceId)
- Specified by:
synchronousReindexWorkCaseInstancein interfaceSynchronousPlatformReindexService
-
reindexActivities
@Async public void reindexActivities()
Description copied from interface:PlatformReindexServiceReindex 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:
reindexActivitiesin interfacePlatformReindexService
-
synchronousReindexActivities
public void synchronousReindexActivities()
- Specified by:
synchronousReindexActivitiesin interfaceSynchronousPlatformReindexService
-
reindexActivity
@Async public void reindexActivity(java.lang.String activityInstanceId)
Description copied from interface:PlatformReindexServiceReindex one activity instance. This method, contrary toPlatformReindexService.reindexCaseInstance(String)runs synchronously.- Specified by:
reindexActivityin interfacePlatformReindexService
-
synchronousReindexActivity
public void synchronousReindexActivity(java.lang.String activityInstanceId)
- Specified by:
synchronousReindexActivityin interfaceSynchronousPlatformReindexService
-
reindexContentItems
@Async public void reindexContentItems()
Description copied from interface:PlatformReindexServiceReindex 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:
reindexContentItemsin interfacePlatformReindexService
-
synchronousReindexContentItems
public void synchronousReindexContentItems()
- Specified by:
synchronousReindexContentItemsin interfaceSynchronousPlatformReindexService
-
reindexContentItem
@Async public void reindexContentItem(java.lang.String contentItemId)
Description copied from interface:PlatformReindexServiceReindex one content item. This method, contrary toPlatformReindexService.reindexCaseInstance(String)runs synchronously.- Specified by:
reindexContentItemin interfacePlatformReindexService
-
synchronousReindexContentItem
public void synchronousReindexContentItem(java.lang.String contentItemId)
- Specified by:
synchronousReindexContentItemin interfaceSynchronousPlatformReindexService
-
-