Class CannotAddMultiInstanceInnerActivityValidator
- java.lang.Object
-
- org.camunda.bpm.engine.impl.migration.validation.instruction.CannotAddMultiInstanceInnerActivityValidator
-
- All Implemented Interfaces:
MigrationInstructionValidator
public class CannotAddMultiInstanceInnerActivityValidator extends java.lang.Object implements MigrationInstructionValidator
Validates that the target process definition cannot add a new inner activity to a migrating multi-instance body.- Author:
- Thorben Lindhauer
-
-
Constructor Summary
Constructors Constructor Description CannotAddMultiInstanceInnerActivityValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ActivityImpl
getInnerActivity(ActivityImpl multiInstanceBody)
protected boolean
isMultiInstance(ScopeImpl scope)
void
validate(ValidatingMigrationInstruction instruction, ValidatingMigrationInstructions instructions, MigrationInstructionValidationReportImpl report)
Check that a migration instruction is valid for a migration plan.
-
-
-
Method Detail
-
validate
public void validate(ValidatingMigrationInstruction instruction, ValidatingMigrationInstructions instructions, MigrationInstructionValidationReportImpl report)
Description copied from interface:MigrationInstructionValidator
Check that a migration instruction is valid for a migration plan. If it is invalid a failure has to added to the validation report.- Specified by:
validate
in interfaceMigrationInstructionValidator
- Parameters:
instruction
- the instruction to validateinstructions
- the complete migration plan to validatereport
- the validation report
-
isMultiInstance
protected boolean isMultiInstance(ScopeImpl scope)
-
getInnerActivity
protected ActivityImpl getInnerActivity(ActivityImpl multiInstanceBody)
-
-