此内容没有您所选择的语言版本。

7.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.

7.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 7.5, “Rearranging patterns on the canvas”
Section 7.4, “Configuring a pattern”
Section 7.6, “Removing patterns from a route”

7.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 7.5, “Rearranging patterns on the canvas”
Section 7.4, “Configuring a pattern”
Section 7.6, “Removing patterns from a route”
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.