[jboss-user] [JBoss Seam] - Re: UnitTesting and jBPM pageflow
trekker880
do-not-reply at jboss.com
Wed Jun 27 07:57:57 EDT 2007
OK.
You had put a comment on the pageflow-defintion.xml as it's not legal.
I am using start-page to start my pageflow. So where i need to put the start node. I am starting my pageflow using the page rather than the start-state.
| <start-page name="page2" view-id="/page2.jspx" >
| <transition name="yes" to="page3">
| </transition>
|
| <transition name="back" to="start"></transition>
| </start-page>
|
Also there is one concern.
As i am moving from the page2 to page 3. Say the conversation id it shows is 1 but when it is on page3 the conversation-id changed to 2 and it remains the same for the subsequent flow.
If i am on a same pageflow the conversation id should remain the same for back-forth flow navigation.But it gets changed when it moves from page2 to page3.
| <pageflow-definition xmlns="http://jboss.com/products/seam/pageflow"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation=
| "http://jboss.com/products/seam/pageflow http://jboss.com/products/seam/pageflow-1.2.xsd"
| name="pageflow1">
|
| <start-page name="page2" view-id="/page2.jspx" >
| <transition name="yes" to="page3">
| </transition>
|
| <transition name="back" to="start"></transition>
| </start-page>
|
| <page name="page3" view-id="/page3.jspx" back="enabled">
| <redirect/>
| <transition name="back" to="page2"></transition>
| <transition name="yes" to="page4"/>
| </page>
|
| <page name="page4" view-id="/page4.jspx" back="enabled">
| <redirect/>
| <transition to="page5" name="yes"></transition>
| <transition name="back" to="page3"></transition>
| </page>
| <page name="page5" view-id="/page5.jspx" back="enabled">
| <redirect/>
| <transition to="start" name="yes"></transition>
| <transition name="back" to="page4"></transition>
| </page>
|
| <page view-id="/login.jspx" name="start" >
| </page>
|
| </pageflow-definition>
|
Also there are method in the Jbpm class in the seam.
| getPageflowDefinitionFromResource(String resourceName)
| getPageflowDefinitionFromXml(String pageflowDefinition)
| getPageflowProcessDefinition(String pageflowName)
| getProcessDefinitionFromResource(String resourceName)
|
How to get the pageflow definition.xml using these methods. I tried these methods but in vain. May be i m following the wrong path. Do you have any idea?
Can you post your bean where you used the @Begin annotated method to start the pageflow ?
Thanx
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058106#4058106
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058106
More information about the jboss-user
mailing list