public class GatewayMappingValidator extends Object implements MigrationInstructionValidator
For synchronizing gateways (inclusive; parallel), the situation in which more tokens end up at the target gateway than there are incoming sequence flows must be avoided. Else, the migrated process instance may appear as broken to users since the migration logic cannot trigger these gateways immediately.
Such situations can be avoided by enforcing that
Constructor and Description |
---|
GatewayMappingValidator() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isWaitStateGateway(ActivityImpl activity) |
void |
validate(ValidatingMigrationInstruction instruction,
ValidatingMigrationInstructions instructions,
MigrationInstructionValidationReportImpl report)
Check that a migration instruction is valid for a migration plan.
|
protected void |
validateIncomingSequenceFlows(ValidatingMigrationInstruction instruction,
ValidatingMigrationInstructions instructions,
MigrationInstructionValidationReportImpl report) |
protected void |
validateParentScopeMigrates(ValidatingMigrationInstruction instruction,
ValidatingMigrationInstructions instructions,
MigrationInstructionValidationReportImpl report) |
protected void |
validateSingleInstruction(ValidatingMigrationInstruction instruction,
ValidatingMigrationInstructions instructions,
MigrationInstructionValidationReportImpl report) |
public void validate(ValidatingMigrationInstruction instruction, ValidatingMigrationInstructions instructions, MigrationInstructionValidationReportImpl report)
MigrationInstructionValidator
validate
in interface MigrationInstructionValidator
instruction
- the instruction to validateinstructions
- the complete migration plan to validatereport
- the validation reportprotected void validateIncomingSequenceFlows(ValidatingMigrationInstruction instruction, ValidatingMigrationInstructions instructions, MigrationInstructionValidationReportImpl report)
protected void validateParentScopeMigrates(ValidatingMigrationInstruction instruction, ValidatingMigrationInstructions instructions, MigrationInstructionValidationReportImpl report)
protected void validateSingleInstruction(ValidatingMigrationInstruction instruction, ValidatingMigrationInstructions instructions, MigrationInstructionValidationReportImpl report)
protected boolean isWaitStateGateway(ActivityImpl activity)
Copyright © 2017. All rights reserved.