Main > Reference Manual > Unit tests > TestFlowAlternate2

This test verifies the behavior of the user exit that controls alternate flows. The user exit gives the user control over the allowed combinations of alternate flows.

In this example, a product uses 3 components, each having some alternates.

  • component A1, with alternates A2 and A3
  • component B1, with alternates B2, B3 and B4
  • component C1, with alternates C2, C3 and C4

This gives a total of 3*4*4 = 48 possible combinations of the components.
Using the user exit we restrict the allowed combinations to the following:

  • A1, B2, C1
  • A1, B2, C2
  • A2, B1, C2
  • A2, B1, C3
  • A3, B3, C4
  • A3, B4, C4

These restrictions can represent technical constraints in the bill of material (as provided by the engineers), different versions in the bill of material, configuration rules imposed by the customer, etc...