protected internal virtual void validateSingleInstruction(ValidatingMigrationInstruction instruction, ValidatingMigrationInstructions instructions, MigrationInstructionValidationReportImpl report) { ActivityImpl targetActivity = instruction.TargetActivity; IList <ValidatingMigrationInstruction> instructionsToTargetGateway = instructions.getInstructionsByTargetScope(targetActivity); if (instructionsToTargetGateway.Count > 1) { report.addFailure("Only one gateway can be mapped to gateway '" + targetActivity.Id + "'"); } }
public virtual void validate(ValidatingMigrationInstruction instruction, ValidatingMigrationInstructions instructions, MigrationInstructionValidationReportImpl report) { ActivityImpl targetActivity = instruction.TargetActivity; if (isMultiInstance(targetActivity)) { ActivityImpl innerActivity = getInnerActivity(targetActivity); if (instructions.getInstructionsByTargetScope(innerActivity).Count == 0) { report.addFailure("Must map the inner activity of a multi-instance body when the body is mapped"); } } }