Process Model- split using AND gate

Certified Associate Developer

Hi Community,

Let’s say I have 15 nodes in a process model.

Scenario 1: The nodes are placed linearly and execute one after another.

Scenario 2: The nodes are split into 5 branches, with 3 nodes in each branch, using an AND/OR gate.

On testing above scenarios, when I config this inside startprocess and try to trigger it from web API, both scenarios are taking approx same time. Does appian on the backend still executes it linear irrespective of how we branch it in single process model canvas?

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    AFAIK, Appian does run one process instance on one execution engine - so even with AND parallel branches, all nodes are processed by that single engine, meaning:
    True thread-level parallelism doesn't happen within one instance
    Branches are queued and picked up by the same engine serially.
    The parallel in AND gateway is logical, not true concurrent threading within a single instance.

    True speedup only via background startprocess() - each gets its own engine instance.

Reply
  • 0
    Certified Lead Developer

    AFAIK, Appian does run one process instance on one execution engine - so even with AND parallel branches, all nodes are processed by that single engine, meaning:
    True thread-level parallelism doesn't happen within one instance
    Branches are queued and picked up by the same engine serially.
    The parallel in AND gateway is logical, not true concurrent threading within a single instance.

    True speedup only via background startprocess() - each gets its own engine instance.

Children