- Made it always ok to process, will address ability to pause the machine separately to the change notifiers at a later date. For now stability of processing more important.
- Added machine registry and repl
- Reworked
fail
event to pass through error
- Rework "at capacity" detection logic
- Refine machine.close logic to clean up neuron job queue
- Only allow one machine with one id active at a time
- Ensure that if a notifier is created for the machine, then it is paused if the machine is in a paused state.
- Add the
leaveOn
member for a machine, by default leaveOn.fail is false
- Bump version to reflect addition of new methods in 0.1.x versions
- Added
pause
andresume
methods and events to the machine for flow control help
- calling
done
on an item with anerror
in the options, now maps to afail
- added a
close
method to a machine which closes the underlying changemate notifier - changed JsonStore to use
fs.writeFileSync
as in particular cases callback was never firing forfs.writeFile
- Revisions to checkpointing logic (enable fails to checkpoint)
- Added
checkpointOn
object to machine for toggling checkpoint ondone
,fail
, etc
- Made item methods chainable
- State now referenced as checkpoint (it's more accurate)
- Added basic state storage (
JsonStore
)
- Added error message for
item.fail
call - Parameter passthrough for item
done
andfail
events
- Reworked items and queuing to make manual item / machine interaction simpler.
- Added status queues in the machine for watching item state
- Reworked
newListener
implementation to be more efficient.
- Initial version