Start variables belong to the workflow. They are declared on the start node and are available in every operation field that accepts a value. A variable name uses letters, digits and the underscore, and must not start with a digit.
Workflow variables
A variable has three parts: Type, Value and Description. The type tells the core how to read the value; the description is shown in the form so that another person can understand what the variable is for.
- A workflow default is set on the Start node.
- A task parameter replaces the default for one task.
- A table column becomes a variable and replaces both for one job.
- System variables of the profile are read-only:
serial_number,browser_name,acc_id,commentanduser_name.
Value priority
Ombra resolves a value in three layers. The nearest layer wins:
| Layer | Where it is set | Priority |
|---|---|---|
| Workflow default | Start node of the workflow | Lowest |
| Task parameter | Task settings or --set in the CLI | Middle |
| Table row | The row assigned to the current job | Highest |
For example, the workflow default for url is https://example.com, a task parameter sets https://example.org, and a table row contains https://example.net. The operation receives the table value. The same rule applies to numbers, lists and other values; Tasks and tables shows where each layer is set.
Conditions and Yes/No branches
The Condition node evaluates a variable and sends control to one of two outputs: Yes or No. Both branches can continue with different operations and meet again at a common node.
- Use a condition to check a value that a previous operation saved, such as a page URL or an element text.
- Use Repeat while a condition is true when the same check must run before every iteration.
A condition does not change the variable it checks. It only chooses the output for the next step; save a new value with the Variables operation if later steps need it.
Loops
Loop nodes repeat a chain and then continue through their next output. The repeated chain starts at the body output and returns to the loop input.
- Repeat a set number of times runs the body a fixed number of times.
- For Loop Data walks through a list or an object.
- For Loop Elements walks through elements found on the page.
- Repeat while a condition is true checks the condition before each iteration.
- Exit Loop leaves the nearest loop and continues after it.
Error branches
A node can expose an error output. When the operation fails, control leaves through that output instead of ending the whole run. Connect a Variables node, a Screenshot operation or a Save to Txt operation there to record what happened.
If the error output is not connected, the run ends with the Error status and the message appears in the run history. The error branch can read the last error text, so a recovery chain can save it before the run finishes.