te the flow starting with nodeA
const flow = new Flow(nodeA);

// Initial shared state
const sharedState = {};

// Run the flow
flow.runAsync(sharedState).then(() =&gt; {
  console.log(&quot;Flow completed successfully.&quot;);
}).catch(error =&gt; {
  console.error(&quot;Flow execution failed:&quot;, error);
});
</code></pre>
<ul>
<li>When you run the flow, it executes <code>NodeA</code>.</li>
<li>Suppose <code>NodeA.postAsync()</code> returns <code>"default"</code>.</li>
<li>The flow then sees the <code>"