rentNode: BaseNode | undefined = await this.getStartNode();
        while (currentNode) {
            currentNode.setParams((flowParams) ? flowParams : this.flow_params);
            const action = await currentNode.run(sharedState);
            currentNode = currentNode.getSuccessor(action);
        }
    }
}
</code></pre>
<h3 id="6-parallel-processing">6. Parallel Processing</h3>
<p><code>BatchFlow</code> enables parallel execution:</p>
<pre><code class="language-typescript">class BatchFlow extends Flow {