Generic Flow

◷ Reading Time: 5 minutes

What is Generic Flow?

Flow allows you to orchestrate the execution of multiple activities, tasks, or logic documents.

The flow consists of a set of:

  • Nodes
  • Transitions

Nodes

Nodes are isolated executable unit of work that carries a goal to be met. A node in the FlexRule Flow engine can simply be:

  • an activity to be executed
  • a rule to be evaluated
  • a decision to be taken
  • and so on…

However, a node has no notion of sequence or succession. A node may have some Incoming and Outgoing transitions.

Transitions

In a flow, transitions are responsible for connecting one activity to another. This is the execution transition between different nodes in the flow. Most transitions just model the next step in a flow by pointing the attribute to the next node. However, sometimes a transition may have the following properties:

Conditions

E.g. Transitions that go away from a Decision node can have conditions.

Priority

E.g. Transitions that go away a Decision node can have priorities.

Exception information

E.g. An exception message can be assigned.

Expression

E.g. A variable assignment can be done instead of adding an Assign node or Activity node.

These attributes of transitions allow the handling of complex behaviors in a flow.

Must-have Nodes

All flows must have at least a Start node and an End node.

To add a new General Flow document,

Document Types --> Business Logic --> Generic Flow


Once you added a term, this will be the window.

General Flow Properties

  1. Name: Name of the flow
  2. Variable Definition: Define variables to be used in the flow
  3. Types Definition: List of types and functions
  4. Glossaries: Link Business Glossaries and Boxed Expressions

Toolbox

The toolbox has a number of nodes that can be added to the flow.

Complete list of commands

Check the Flow Commands for the complete list.

Top Menu

At the top menu, you can see the following items.

  1. Open the related logic document for this node: Open the logic document of a selected node
  2. Create a logic document for selected node: Create a logic document for a selected node
  3. Delete item: Delete a selected item
  4. Highlight the impacts of the selected node: Highlight the impacts of a selected node
  5. Properties: Properties of the page or a node
  6. Business Glossary: Link Business glossaries and boxed expressions
  7. Overview of entire model: See the entire model
  8. Zooming: Zoom in or zoom out
  9. Export to image: Export the document to an image
  10. Alignments: Align nodes
  11. Resize: Resize selected nodes to a single size
  12. Layout arrangements: Automatically arrange and layout the nodes
  13. Change connections: Change connection styles to straight/ Bezier or Right Angle

Node/ Connection Properties

If you click on a node/ connection, its property window will appear. The properties vary depending on the node type.

Video Description

Sample Generic Flow

Download the sample Generic Flow using the attachment.

Tutorial

Updated on April 7, 2022

Article Attachments

Was this article helpful?

Related Articles