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.
Add a link¶
- Turn on Linking Mode with the toolbar button or Project → Link Components. The status bar shows Linking Mode On.
- Drag from the component that sends the message to the one that receives it. The arrow shows the direction of flow.
- 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 |
Link types¶
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.
| 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
ContinueAfterErrorisFalse, 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,ReplyorInternal).
Example email body
An error occurred on {ErrComponent} at {DateTime(hh:mm:ss)}.
The error description is {ErrDescription}.