I think you can. See the sample code.
// this will return all the transition that can be triggered by that event. Since no transition happened which means conditions of returned
// transition instances were not pass.
ImmutableTransition<~> transitionsFailOnConditionGuard = someStateMachine.getRawStateFrom(fromStateId).getTransitions(event);
// Thus you can iterate on this transition list and get its condition which is fail condition
for(ImmutableTransition<~> transition : transitionsFailOnConditionGuard) {
Condition<~> failedCondition = transition.getCondition();
}
Is this what you want?
在 2014年10月29日星期三UTC+8下午5时20分25秒,Gaurav Arora写道: