Previous Topic

Book Contents

Book Index

Next Topic

Implementing Loops Using Reset Transition

You can implement a cycle using the Reset transition (see States of Transition Instances for more information).

Normally, once a node is triggered, it does not react to its inputs anymore. If the node has all the data it needs, it is switched directly to the state ACTIVE.

Using the Reset transition, you can re-initialize the node to the state CREATED. This mechanism is used to repeatedly bring in new data and thus implement a loop.

The RESET state is propagated by all outgoing transitions. As a result, all the following nodes in the workflow are also in the RESET state.

There is a drawback of this method - you have no information about the number of cycles that have already run through because the state is reset each time.

Note: In the WCT, the Reset transitions are displayed using blue color.

Help Image

See Also

Implementing Loops

Implementing Loops Using Subworkflows (Recursion)