That's what I was doing when I said:
anonymous wrote : 
  |   |         @Begin(pageflow="PaymentAuthorization")
  |   |         public  void    start() {               
  |   |         }
  | However, if I started via a GET (calling the above method via pages.xml) ...

When I do that, I get the ClassCastException:java.lang.ClassCastException: 
org.jbpm.graph.node.StartState
  |     at org.jboss.seam.core.Pageflow.getPage(Pageflow.java:135)

due to this line in Pageflow.java:
   public Page getPage() 
  |    {
  |       return (Page) getNode();
  |    }

(Line number has changed because I just upgraded to Seam 1.0.1 to make sure we 
are on the same page).

Seems to me that a page node is expected instead of a start state and so the 
exception is thrown. 


Just in case, heres the extract from pages.xml:     <page       
view-id="/authorize.xhtml"
  |                     action="#{authorizer.start}" /> 
  |  and from AuthorizerAction.java: @Name("authorizer")
  | @Stateful
  | @Scope(ScopeType.CONVERSATION)
  | public class AuthorizerAction implements Authorizer {
  | 
  |     @Begin(pageflow="PaymentAuthorization")
  |     public  void    start() {               
  |     }

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

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


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to