Announcement Announcement Module
Collapse
No announcement yet.
What I need to extends in order to catch my Business Exception from Service Classes Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • What I need to extends in order to catch my Business Exception from Service Classes

    before I extends the FormAction in SWF1 in order to try catch my BusinessException returned by the Service class...

    how about in SWF2? below is the sample flow and service execution

    flow
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <flow xmlns="http://www.springframework.org/schema/webflow"
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xsi:schemaLocation="http://www.springframework.org/schema/webflow
            http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd">
    
    	<view-state id="enterFlow1" view="view-flow1" model="model1" >
    		<on-render>
    		</on-render>
    
    		<transition on="gotoFlow2" to="enterFlow2" >
    			<evaluate 
    				expression="simulationService.execReflectData(model1)">
    			</evaluate>
    		</transition>
    		
    	</view-state>
    	
    </flow>
    service
    Code:
    public void execReflectData(Model1 model1) 
    	throws BusinessException {
    	
    	bussinessLogic1.reflectData1();
    	
    }

  • #2
    It depends on what you want to do, why wouldn't a transition on-exception work?

    Comment

    Working...
    X