[jboss-user] [JBoss Seam] - Re: UnitTesting and jBPM pageflow

trekker880 do-not-reply at jboss.com
Tue Jun 26 01:52:33 EDT 2007


@ knisterPeter

hi
i am getting the same problem. I'm also making a test class for the pageflow.Its a simple pageflow-definition 

Code :
<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="submit2">
   
   <start-page name="page2" view-id="/page2.jspx" >
             
          
 
     
   </start-page>  
   
   <page name="page3" view-id="/page3.jspx" back="enabled">  
         
        
      
   
   
     <page name="page4" view-id="/page4.jspx" back="enabled">
         
      
         
   
   
   <page view-id="/login.jspx" name="start" >
   
   
</pageflow-definition>

Here is pages.xml

Code:

<!DOCTYPE pages PUBLIC
  "-//JBoss/Seam Pages Configuration DTD 1.2//EN"
  "http://jboss.com/products/seam/pages-1.2.dtd">


  <page view-id="/numberGuess.jspx">
    <begin-conversation join="true" pageflow="numberGuess"/>
  
  <page view-id="/confirm.jspx">
    <begin-conversation nested="true" pageflow="cheat"/>
  
   <page view-id="/page2.jspx">  
    <begin-conversation  nested="true" pageflow="submit2"/>
  


I'm getting the error while doing the Pageflow.instance().begin()

My converstaion gets start when i am on page3.jspx while i am starting the pageflow from the page.jspx.

I am only making the simple java file rather than the junit test case.
My purpose is to extract the CurrentPage and the NextPage.

Could you provide the sample test code for this pageflow.

Thanks,



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057548#4057548

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057548



More information about the jboss-user mailing list