|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.impl.migration.MigrationPlanBuilderImpl
public class MigrationPlanBuilderImpl
| Field Summary | |
|---|---|
protected CommandExecutor |
commandExecutor
|
protected List<MigrationInstructionImpl> |
explicitMigrationInstructions
|
protected boolean |
mapEqualActivities
|
protected String |
sourceProcessDefinitionId
|
protected String |
targetProcessDefinitionId
|
protected boolean |
updateEventTriggersForGeneratedInstructions
|
| Constructor Summary | |
|---|---|
MigrationPlanBuilderImpl(CommandExecutor commandExecutor,
String sourceProcessDefinitionId,
String targetProcessDefinitionId)
|
|
| Method Summary | |
|---|---|
MigrationPlan |
build()
|
List<MigrationInstructionImpl> |
getExplicitMigrationInstructions()
|
String |
getSourceProcessDefinitionId()
|
String |
getTargetProcessDefinitionId()
|
boolean |
isMapEqualActivities()
|
boolean |
isUpdateEventTriggersForGeneratedInstructions()
|
MigrationInstructionBuilder |
mapActivities(String sourceActivityId,
String targetActivityId)
Adds a migration instruction that maps activity instances of the source activity (of the source process definition) to activity instances of the target activity (of the target process definition) |
MigrationInstructionsBuilder |
mapEqualActivities()
Automatically adds a set of instructions for activities that are equivalent in both process definitions. |
MigrationInstructionBuilder |
updateEventTrigger()
If the current instruction maps between event-receiving flow nodes that rely on a persistent event trigger, this method can be used to determine whether the event trigger should be updated during migration |
MigrationInstructionsBuilder |
updateEventTriggers()
Toggle whether the instructions should include updating of the respective event triggers where appropriate. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CommandExecutor commandExecutor
protected String sourceProcessDefinitionId
protected String targetProcessDefinitionId
protected List<MigrationInstructionImpl> explicitMigrationInstructions
protected boolean mapEqualActivities
protected boolean updateEventTriggersForGeneratedInstructions
| Constructor Detail |
|---|
public MigrationPlanBuilderImpl(CommandExecutor commandExecutor,
String sourceProcessDefinitionId,
String targetProcessDefinitionId)
| Method Detail |
|---|
public MigrationInstructionsBuilder mapEqualActivities()
MigrationPlanBuilder
mapEqualActivities in interface MigrationPlanBuilder
public MigrationInstructionBuilder mapActivities(String sourceActivityId,
String targetActivityId)
MigrationPlanBuilder
mapActivities in interface MigrationPlanBuilderpublic MigrationInstructionBuilder updateEventTrigger()
MigrationInstructionBuilderIf the current instruction maps between event-receiving flow nodes that rely on a persistent event trigger, this method can be used to determine whether the event trigger should be updated during migration
For example, when mapping a message catch event waiting for message A to another message catch waiting for message B, using this option updates the message trigger to B during migration. That means, after migration this process instance can be correlated to using B. If this option is not used, then the message trigger is not updated and A is the message to be received after migration.
Event-receiving flow nodes are:
For other flow nodes, this option must not be used and if so, results in a validation exception when the plan is created
updateEventTrigger in interface MigrationInstructionBuilderpublic MigrationInstructionsBuilder updateEventTriggers()
MigrationInstructionsBuilderMigrationInstructionBuilder.updateEventTrigger() for details
what updating the event trigger means for a single instruction.
updateEventTriggers in interface MigrationInstructionsBuilderpublic String getSourceProcessDefinitionId()
public String getTargetProcessDefinitionId()
public boolean isMapEqualActivities()
public boolean isUpdateEventTriggersForGeneratedInstructions()
public List<MigrationInstructionImpl> getExplicitMigrationInstructions()
public MigrationPlan build()
build in interface MigrationPlanBuilder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||