 another layer of processing, such as logging and notification. You can create additional sub-flows or combine existing ones.</p>
<pre><code class="language-typescript">import { BaseNode, Flow, DEFAULT_ACTION } from &quot;../src/pocket&quot;;

// Define LoggingNode
class LoggingNode extends BaseNode {
  public async prepAsync(sharedState: any): Promise&lt;void&gt; {
    // Prepare logging data
  }

  public async execAsync(_: void): Promise&lt;void&gt; {
    // Execute logging logic
  }

  public async post