Beh01der / EasyFlow

EasyFlow - Simple and lightweight Finite State Machine for Java
http://datasymphony.com.au/open-source/easyflow
Apache License 2.0
445 stars 86 forks source link

Add ability to ignore events that happen out of their expected state. #8

Closed johnnylambada closed 11 years ago

johnnylambada commented 11 years ago

This can easily happen when asynchronous activities fire off events. New API ignoreOutOfState reads like this:

FlowBuilder
   .from(MY_INITIAL_STATE)
   .transit(onMyEvent.ignoreOutOfState().to(MY_NEW_STATE)
);
Beh01der commented 11 years ago

Thanks Johnny, Looks good

johnnylambada commented 11 years ago

No problem. Really like the code. Been looking for an easy to use FSM for a long time On Nov 8, 2013 10:17 PM, "Andrey Chausenko" notifications@github.com wrote:

Thanks Johnny, Looks good

— Reply to this email directly or view it on GitHubhttps://github.com/Beh01der/EasyFlow/pull/8#issuecomment-28120891 .