public class DefaultMigrationInstructionGenerator extends Object implements MigrationInstructionGenerator
Modifier and Type | Field and Description |
---|---|
protected MigrationActivityMatcher |
migrationActivityMatcher |
protected List<MigrationActivityValidator> |
migrationActivityValidators |
protected List<MigrationInstructionValidator> |
migrationInstructionValidators |
Constructor and Description |
---|
DefaultMigrationInstructionGenerator(MigrationActivityMatcher migrationActivityMatcher) |
Modifier and Type | Method and Description |
---|---|
ValidatingMigrationInstructions |
generate(ProcessDefinitionImpl sourceProcessDefinition,
ProcessDefinitionImpl targetProcessDefinition,
boolean updateEventTriggers)
Generate all migration instructions for mapped activities between two process definitions.
|
void |
generate(ScopeImpl sourceScope,
ScopeImpl targetScope,
ProcessDefinitionImpl sourceProcessDefinition,
ProcessDefinitionImpl targetProcessDefinition,
ValidatingMigrationInstructions existingInstructions,
boolean updateEventTriggers) |
protected List<ValidatingMigrationInstruction> |
generateInstructionsForActivities(Collection<ActivityImpl> sourceActivities,
Collection<ActivityImpl> targetActivities,
boolean updateEventTriggers,
ValidatingMigrationInstructions existingInstructions) |
protected boolean |
isValidActivity(ActivityImpl activity) |
MigrationInstructionGenerator |
migrationActivityValidators(List<MigrationActivityValidator> migrationActivityValidators)
Sets the list of migration activity validators which validate that a activity
is a candidate for the migration.
|
MigrationInstructionGenerator |
migrationInstructionValidators(List<MigrationInstructionValidator> migrationInstructionValidators)
Sets the list of migration instruction validators currently used by the process engine.
|
protected List<MigrationActivityValidator> migrationActivityValidators
protected List<MigrationInstructionValidator> migrationInstructionValidators
protected MigrationActivityMatcher migrationActivityMatcher
public DefaultMigrationInstructionGenerator(MigrationActivityMatcher migrationActivityMatcher)
public MigrationInstructionGenerator migrationActivityValidators(List<MigrationActivityValidator> migrationActivityValidators)
MigrationInstructionGenerator
migrationActivityValidators
in interface MigrationInstructionGenerator
migrationActivityValidators
- the list of validators to checkpublic MigrationInstructionGenerator migrationInstructionValidators(List<MigrationInstructionValidator> migrationInstructionValidators)
MigrationInstructionGenerator
migrationInstructionValidators
in interface MigrationInstructionGenerator
public ValidatingMigrationInstructions generate(ProcessDefinitionImpl sourceProcessDefinition, ProcessDefinitionImpl targetProcessDefinition, boolean updateEventTriggers)
MigrationInstructionGenerator
MigrationActivityMatcher
matches it with an activity from the target process definition.generate
in interface MigrationInstructionGenerator
sourceProcessDefinition
- the source process definitiontargetProcessDefinition
- the target process definitonprotected List<ValidatingMigrationInstruction> generateInstructionsForActivities(Collection<ActivityImpl> sourceActivities, Collection<ActivityImpl> targetActivities, boolean updateEventTriggers, ValidatingMigrationInstructions existingInstructions)
public void generate(ScopeImpl sourceScope, ScopeImpl targetScope, ProcessDefinitionImpl sourceProcessDefinition, ProcessDefinitionImpl targetProcessDefinition, ValidatingMigrationInstructions existingInstructions, boolean updateEventTriggers)
protected boolean isValidActivity(ActivityImpl activity)
Copyright © 2020. All rights reserved.