Class AbstractSynchronizeCmd
java.lang.Object
com.flowable.platform.engine.impl.cmd.AbstractSynchronizeCmd
- Direct Known Subclasses:
SynchronizeCaseInstanceCmd
,SynchronizeProcessInstanceCmd
- Author:
- Filip Hrisafov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
syncEntityLinks
(String scopeId, String scopeType, EntityLinkServiceConfiguration entityLinkServiceConfiguration, Consumer<EntityLinkEntity> historicEntityLinkCreator) protected void
syncIdentityLinks
(List<IdentityLinkEntity> identityLinks, List<HistoricIdentityLinkEntity> historicIdentityLinks, IdentityLinkServiceConfiguration identityLinkServiceConfiguration, Consumer<IdentityLinkEntity> identityLinkEntityCreator) protected void
syncTask
(TaskEntity task, HistoricTaskInstanceEntity historicTask, TaskServiceConfiguration taskServiceConfiguration, IdentityLinkServiceConfiguration identityLinkServiceConfiguration, Consumer<IdentityLinkEntity> identityLinkCreator) protected Collection<String>
syncTasks
(List<TaskEntity> tasks, List<HistoricTaskInstanceEntity> historicTasks, TaskServiceConfiguration taskServiceConfiguration, IdentityLinkServiceConfiguration identityLinkServiceConfiguration, Consumer<IdentityLinkEntity> identityLinkCreator) protected void
syncVariableInstance
(Clock clock, HistoricVariableInstanceEntityManager historicVariableInstanceEntityManager, VariableInstanceEntity variableInstance, HistoricVariableInstanceEntity existingHistoricVariableInstance) protected void
syncVariables
(List<VariableInstanceEntity> variables, List<HistoricVariableInstance> historicVariables, VariableServiceConfiguration variableServiceConfiguration)
-
Constructor Details
-
AbstractSynchronizeCmd
public AbstractSynchronizeCmd()
-
-
Method Details
-
syncVariables
protected void syncVariables(List<VariableInstanceEntity> variables, List<HistoricVariableInstance> historicVariables, VariableServiceConfiguration variableServiceConfiguration) -
syncVariableInstance
protected void syncVariableInstance(Clock clock, HistoricVariableInstanceEntityManager historicVariableInstanceEntityManager, VariableInstanceEntity variableInstance, HistoricVariableInstanceEntity existingHistoricVariableInstance) -
syncEntityLinks
protected void syncEntityLinks(String scopeId, String scopeType, EntityLinkServiceConfiguration entityLinkServiceConfiguration, Consumer<EntityLinkEntity> historicEntityLinkCreator) -
syncIdentityLinks
protected void syncIdentityLinks(List<IdentityLinkEntity> identityLinks, List<HistoricIdentityLinkEntity> historicIdentityLinks, IdentityLinkServiceConfiguration identityLinkServiceConfiguration, Consumer<IdentityLinkEntity> identityLinkEntityCreator) -
syncTasks
protected Collection<String> syncTasks(List<TaskEntity> tasks, List<HistoricTaskInstanceEntity> historicTasks, TaskServiceConfiguration taskServiceConfiguration, IdentityLinkServiceConfiguration identityLinkServiceConfiguration, Consumer<IdentityLinkEntity> identityLinkCreator) - Parameters:
tasks
- the runtime taskshistoricTasks
- the existing historic taskstaskServiceConfiguration
- the task service configuration that should be usedidentityLinkServiceConfiguration
- the identity link service configuration that should be usedidentityLinkCreator
- the identity link creator- Returns:
- the ids of all tasks that were synchronized
-
syncTask
protected void syncTask(TaskEntity task, HistoricTaskInstanceEntity historicTask, TaskServiceConfiguration taskServiceConfiguration, IdentityLinkServiceConfiguration identityLinkServiceConfiguration, Consumer<IdentityLinkEntity> identityLinkCreator)
-