| Posted by: WUICTeam - Sunday, November 15, 2026 3:28:40 PM |
|---|
| [b]Question[/b] In my workflow a table action leads to condition [c]C1[/c] ([c]record.importo > 1000[/c]). The true branch goes to condition [c]C2[/c] ([c]record.urgente[/c]); [c]C2[/c] true goes to route X, [c]C2[/c] false goes to condition [c]C3[/c] ([c]record.reparto == "IT"[/c]). The false branch of [c]C1[/c] also goes to [c]C3[/c], and [c]C3[/c] routes to Y (true) or Z (false). Records with an amount above 1000 move on as expected. A record with amount 500 and department IT should go to Y, but when I click the workflow button I only get the toast saying the transition guard is not satisfied, and nothing happens. [b]Answer[/b] Thanks for the report, it was a bug in the workflow runner. When it collected the possible next steps of an action, it visited every condition, switch or parallel node only once per action. A node reached by two branches (like [c]C3[/c] in your graph) was explored only along the first branch, so the steps after it were registered only with that branch's guards ([c]C1[/c] true, [c]C2[/c] false). Records arriving through the other branch ([c]C1[/c] false) matched no registered step and were blocked. From version 1.8.2 the runner explores every path separately, so each step downstream of a shared node gets one entry for each path that leads to it, with that path's guards. Loops in the graph are still detected and stopped. Workaround for earlier versions: [list] [*]duplicate the shared condition so that each branch has its own copy, or [*]combine the guards on a single condition so that no node is reached by two branches. [/list] No changes to your workflow are needed after upgrading. |