NStateManager
NStateManager copied to clipboard
Add optional parameter for Entry, Exit, and Reentry events
Sample scenario:
- Sale.Open transitions to Sale.CardProcessing on SaleEvent.CardPayment with payment argument
- Sale.CardProcessing state entry event needs payment argument to send to card processor
- Sale.CardProcessor automatically forwards to Sale.Complete if card processing was successful and sale.Balance is now 0.