struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pedro Rodriguez" <prodr...@accovia.com>
Subject [Struts Workflow] - Workflow Router Struts Action
Date Mon, 17 Nov 2003 15:44:56 GMT
I implemented a generic Struts's Action which allows for Workflow
routing in struts-config.
 
This Action receives an expression via its parameter. We use EL (Jakarta
taglib implementation). Variables are Workflow's names and their values
the corresponding Workflow's state. The expression must evaluate to a
Boolean. 
 
The only thing to do to implement a "workflow routing" is to add a
mapping to the struts-config where the expression (parameter) is
provided. 
 
All WorkflowRouter uses the same Action: WorkflowRouterAction.
 
<action
            path="/XXXXWorkflowRouter"
            type="MY_PACKAGE.WorkflowRouterAction"
            parameter="${myWorkflowLabel=='some_state'}" >
 
            <forward name="true" path="/SomeAction.do" />
            <forward name="false" path="/AnotherAction.so " />
</action>          
 
Thanks,
 
Pedro Rodriguez
 
 
 

Mime
View raw message