Este conteúdo não está disponível no idioma selecionado.

3.6. Gateways


Gateways make it possible to provide multiple paths of execution through a process. There are two types of gateways: diverging gateways and converging gateways. Diverging gateways create branches in processes, and converging gateways close the branches by merging them back together.
It is possible to branch processes in the following ways:
  • AND (Parallel)
    The flow of control continues along all outgoing connections (branches) simultaneously.
  • XOR (Exclusive)
    The flow of control continues along only one of the outgoing connections. The connection with the constraint with the lowest priority number that evaluates to true is selected. For information about defining constraints see Section 3.8, “Constraints”. At least one of the outgoing connections must evaluate to true at runtime, or the process will throw an exception at runtime.

Figure 3.2. Diverging Gateway

A diverging gateway has one incoming connection and two or more outgoing connections. A diverging gateway contains the following properties:
  • ID: The ID of the node (which is unique within one node container).
  • Name: The display name of the node.
  • Type: AND or XOR.
  • Constraints: The constraints linked to each of the outgoing connections (exclusive and inclusive gateways).

Figure 3.3. Converging Gateway

A converging gateway has two or more incoming connections and one outgoing connection. A converging gateway contains the following properties:
  • ID: The ID of the node (which is unique within one node container).
  • Name: The display name of the node.
  • Type: AND or XOR.
Depending on the type of diverging gateway used, the converging gateway will behave in different ways:
  • When a parallel (AND) split was used, the converging gateway will wait for all incoming branches to be completed before continuing.
  • When an exclusive (XOR) split was used, the converging gateway will continue as soon as the one incoming branch has completed.

Note

Inclusive (OR) gateways are not currently supported.

Voltar ao topo
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2025 Red Hat