Finite icon indicating copy to clipboard operation
Finite copied to clipboard

to reject the event

Open ahurt2000 opened this issue 9 years ago • 6 comments

The issue 77 explain the problem. I suggest this change to resolve it.

ahurt2000 avatar Feb 24 '15 16:02 ahurt2000

@ahurt2000 Do we really want a StateException if an event rejects the transition?

hacfi avatar Feb 24 '15 16:02 hacfi

hum good question! may is better a TransitionException

ahurt2000 avatar Feb 24 '15 16:02 ahurt2000

Well, there's another way to approach it ignoring the event status as before. But then it makes sense that the event is rejected?

ahurt2000 avatar Feb 24 '15 16:02 ahurt2000

I’m :+1: for this PR..just not sure whether to throw an Exception or fail silently (return;)

hacfi avatar Feb 24 '15 16:02 hacfi

Well..failing silently is not a good idea - nevermind.

hacfi avatar Feb 24 '15 16:02 hacfi

Hum, sorry for taking this so late, but does it makes sense to reject a pre transition event ?

I think the real problem comes from the current implementation, that allow that. In fact, we can reject a post transition event…

2.0 version will probably split TestTransition and ApplyTransition events.

yohang avatar Nov 30 '15 19:11 yohang