đź”—Connecting Flowlets

There are multiple ways to connect the flowlets of a flow. The most common form is to use the flowlet name. Because the name of each flowlet defaults to its class name, when building the flow specification you can simply write:

  .add(new RandomGenerator())
  .add(new RoundingFlowlet())

If you have multiple flowlets of the same class, you can give them explicit names:

  .add("random", new RandomGenerator())
  .add("generator", new RandomGenerator())
  .add("rounding", new RoundingFlowlet())