Class GatewayMappingValidator

java.lang.Object
org.camunda.bpm.engine.impl.migration.validation.instruction.GatewayMappingValidator
All Implemented Interfaces:
MigrationInstructionValidator

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

  • the target gateway has at least the same number of incoming sequence flows
  • the target gateway's flow scope is not removed
  • there is not more than one instruction that maps to the target gateway
Author:
Thorben Lindhauer