A.6. Defining Transitions

Engineering Knowledge Manager

User's Guide | Appendix A. Defining a Process Template Using XML |

A.5.8. Custom Dialog Node Type |  | A.7. Defining Blocks
Prev |  | Next

## A.6. Defining Transitions

A transition definition consists of the following required attributes:

- `name`: specifies the name of the transition. There are no restrictions on the characters used in a transition name.

- `source`: specifies the name of the node from which the transition starts

- `destination`: specifies the name of the node at which the transition ends

A transition definition also consists of the following option attribute:

- `triggerExpression`: specifies the condition under which the transition is triggered (or traversed) in a process. If the `triggerExpression` is not specified then the transition is always traversed. This is used to control the paths taken by a process. Figure 6: transition Example shows an example of a transition.

Figure 6: transition Example

    <transition name="On Accept"
          triggerExpression="isMeshAcceptable == true"
             source="Check Mesh"
             destination="Approve Mesh"/>

In the sample listing, the transition goes from a source node named “Check Mesh” to a destination node named `Approve Mesh`. The transition is triggered only when the value of the `isMeshAcceptable` variable is `true`.

Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.

Prev | Up / Contents | Next

Release 18.2 - © ANSYS, Inc. All rights reserved.