QuestionIn my workflow a table action leads to condition
C1 (
record.importo > 1000). The true branch goes to condition
C2 (
record.urgente);
C2 true goes to route X,
C2 false goes to condition
C3 (
record.reparto == "IT"). The false branch of
C1 also goes to
C3, and
C3 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.
AnswerThanks 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
C3 in your graph) was explored only along the first branch, so the steps after it were registered only with that branch's guards (
C1 true,
C2 false). Records arriving through the other branch (
C1 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:
- 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.
No changes to your workflow are needed after upgrading.