Red Hat Training

A Red Hat training course is available for Red Hat Fuse

4.2. Adding patterns to a route

Routes consist of a sequence of connected patterns, referred to as nodes once they are placed on the canvas. To add a pattern to a route you can either:
Both methods provide access to all of the available patterns. Dragging patterns from the palette and dropping them onto the canvas is an easy and convenient way to add multiple patterns to the canvas quickly. Using a node's context menu, you can add and automatically connect a pattern to the node.

4.2.1. Drag and drop a pattern

Overview

The Palette lists all of the available patterns, grouped by function. For example, the Loop pattern is part of the Control Flow group.
You can select any pattern from the Palette and drag it to the canvas, which represents a single route.

Procedure

To drag a pattern onto a route:
  1. In the Palette, locate the desired pattern.
  2. Select the pattern, drag it to the canvas, and then release the mouse button.
    Note
    You need not place the pattern in its intended location. You can easily move any node on the canvas by dragging it to a new location.
The new pattern appears on the canvas and becomes the selected node. The Properties editor displays a list of the node's properties for you to edit and configure.

Related topics

Section 4.5, “Rearranging patterns on the canvas”
Section 4.4, “Configuring a pattern”
Section 4.6, “Removing patterns from a route”

4.2.2. Using the context menu

Overview

Nodes on the canvas have a context menu that includes an Add option for adding new patterns to a route.

Procedure

To add and connect a pattern to a node in a route:
  1. In the canvas, select the node to which you want to connect the new pattern.
  2. Right-click it to open the context menu.
  3. Select Add to display the list of patterns that can be connected to the selected node. The patterns are grouped according to function.
  4. Select the pattern to add to the route.
The new pattern is added to the route and automatically linked to the selected node. The new pattern becomes the currently selected node, and the Properties editor displays a list of the node's properties for you to edit and configure.

Related topics

Section 4.5, “Rearranging patterns on the canvas”
Section 4.4, “Configuring a pattern”
Section 4.6, “Removing patterns from a route”