Hi All,
I'm wondering why when I use multiple <evaluate expression> tags the transition does not pick up the result from the latest <evaluate>?
The consumerResVO.getResult() value IS NO_CONSUMER_REQUEST_FOUND but the last transition is always executed.
If I change this around to the following it works fine... but I'd rather not have to have multiple action states if not needed.Code:<action-state id="checkConsumer"> <evaluate expression="consumerAction.authenticateRequest(flowRequestContext)" result="requestScope.consumerRes"/> <evaluate expression="consumerRes.getResult()"/> <transition on="NO_CONSUMER_REQUEST_FOUND" to="checkLocaleDomain"> <evaluate expression="consumerBean.setConsumerRequestFlag(false)" /> </transition> <transition on="BACK_BUTTON_CLICKED" to="gotoConsumerBackButton"/> <!-- This ALWAYS executes --> <transition to="checkConsumerRequest"/> </action-state>
Code:<action-state id="checkConsumer"> <evaluate expression="consumerAction.authenticateRequest(flowRequestContext, flowScope.domainContext)" result="requestScope.consumerRes"/> <transition to="checkConsumerResult"/> </action-state> <action-state id="checkConsumerResult"> <evaluate expression="consumerRes.getResult()" /> <transition on="NO_CONSUMER_REQUEST_FOUND" to="notConsumerRequest"/> <transition on="BACK_BUTTON_CLICKED" to="gotoConsumerBackButton"/> <transition to="checkConsumerRequest"/> </action-state>


Reply With Quote
