Skip to content

Links and execution flow

Links connect components and decide how a message moves through an interface: straight on, down a branch, into an error handler, onto a new thread, or through a step that must finish first.

  1. Turn on Linking Mode with the toolbar button or Project → Link Components. The status bar shows Linking Mode On.
  2. Drag from the component that sends the message to the one that receives it. The arrow shows the direction of flow.
  3. Turn Linking Mode off, then select the link to set its properties.
Link property Purpose
LinkType One of the seven types below, spelled as shown in the table. New links are Pass Through.
Condition The expression tested by a Conditional link
Separator A character used to split the message for the next component

Each type has its own colour on the canvas.

Link type Colour Behaviour
Pass Through Black The default. Passes every message on to the next component.
Error Red Followed only when the component fails. Typically leads to an email or SMS alert.
Logging Dark green When logging is enabled on the component, also sends the logged message along this link.
Conditional Dark blue Followed only when its Condition is true. Use several to branch.
StartComponent Yellow When the component finishes, sends a start message to the target, which runs on a new thread. Use it to run work in parallel.
DependantProcess Light green Before the message moves on, it goes to the component on this link. Only when that completes does the message continue along the Pass Through or Conditional link. If it doesn't complete, nothing after it runs.
Dependant Reply Light blue The same as DependantProcess, but on the way back: the reply goes to the component on this link before it returns to the previous component.

Write a condition

A condition compares two values, each a literal or a macro: Value Operator Value, with no quotes.

Example
{Data(1)}=Y
{FileExtension}=csv
{Data(3)}>=1000
Operator Meaning
= Equal
<>, != or # Not equal
<, >, <=, >= Less than, greater than, and or-equal versions
~ Contains, for example to check a response for the word Fault

Forward and reply flow

Each component's EndPoint property decides what happens after it runs:

EndPoint Behaviour
Source Starts a thread and collects data, for example by reading files or a queue. Every interface needs one; a component can be a source more than once in a thread (for example a query that returns file names for a file reader).
Conversion Acts on the message and passes it on in the same thread. If nothing should be returned to the source, the last component must be a Conversion.
Server The last component in a request/reply chain. Its result is returned to the previous component as a reply.

What happens when a component fails

  • If the component has an Error link, the error is sent along it.
  • If it has none, the error is logged and the next component still runs, unless the project's ContinueAfterError is False, in which case processing of that thread stops.
  • The failure details are written to the Message Store, so the error flow can use {ErrComponent}, {ErrDescription} and {ErrDirection} (Proceed, Reply or Internal).
Example email body
An error occurred on {ErrComponent} at {DateTime(hh:mm:ss)}.
The error description is {ErrDescription}.
Source Validate Approve Reject Error handler Audit worker Status = Approved else on failure
Figure 2. Conditional links branch the flow, an Error link catches failures, and a StartComponent link starts the audit step on its own thread.