LT_ACTION;
  }
}

// Instantiate nodes
const reviewExpense = new ReviewExpenseNode();
const payment = new PaymentNode();
const reviseExpense = new ReviseExpenseNode();
const finish = new FinishNode();

// Define the flow connections
reviewExpense.addSuccessor(payment, &quot;approved&quot;);
reviewExpense.addSuccessor(reviseExpense, &quot;needs_revision&quot;);
reviewExpense.addSuccessor(finish, &quot;rejected&quot;);

reviseExpense.addSuccessor(reviewExpense, &quot;needs_revision&quot;); // Loop back for re