Problem with pageflow
jdestef Mar 2, 2006 11:40 PMHi,
I'm having a problem with my pageflow. When I invoke to annotated begin method the pageflow does not happen. The same page I was just view is redisplayed.
My page flow file looks like this:
<pageflow-definition name="encounterfind"> <start-state name="start"> <transition to="encounterlist"/> </start-state> <page name="encounterlist" view-id="/view/encounterlist.xhtml" redirect="true"> <transition name="encounterlist" to="encounterlist"/> <transition name="encounterdetail" to="encounterdetail"/> <transition name="bookinglist" to="bookinglist"/> </page> <page name="encounterdetail" view-id="/view/encounterdetail.xhtml"> <end-conversation /> </page> <page name="bookinglist" view-id="/view/bookinglist.xhtml"> <end-conversation/> </page> </pageflow-definition>
My bean class looks like this:
@Stateful
@Name("addfindencounter")
@Conversational(ifNotBegunOutcome = "logout")
@LoggedIn
@Interceptors(SeamInterceptor.class)
public class AddFindEncounterAction implements AddFindEncounter, Serializable {
.
.
.
@Begin(join=true, pageflow="encounterfind")
public String start() {
System.out.println("In findencounter.startAdd");
userSessionStuff.setFindMode(false);
System.out.println("In findencounter.startAdd before return");
return "encounterlist";
}
I know the method executes as I see the output in the log.
I have added the following to my web.xml and included the jbpmXX.jar file in my ejb jar file.
<listener>
<listener-class>
org.jboss.seam.servlet.SeamListener
</listener-class>
</listener>
<!-- 120 second conversation timeout -->
<context-param>
<param-name>org.jboss.seam.core.conversation.timeout</param-name>
<param-value>120000</param-value>
</context-param>
<!-- Global JNDI name pattern for JBoss EJB3 (change for other servers) -->
<context-param>
<param-name>org.jboss.seam.core.init.jndiPattern</param-name>
<param-value>patc/#{ejbName}/local</param-value>
</context-param>
<context-param>
<param-name>org.jboss.seam.core.init.componentClasses</param-name>
<param-value>org.jboss.seam.core.Jbpm</param-value>
</context-param>
<context-param>
<param-name>org.jboss.seam.core.jbpm.pageflowDefinitions</param-name>
<param-value>addfindencounter.jpdl.xml</param-value>
</context-param>
The are no error in the log file. I do see a message that jbpm is starting:
[JbpmConfiguration] using default jbpm configuration with minimal services enabled. to enable persistence services, provide a jbpm.cfg.xml on the root of the classpath. see userguide, chapter 'Configuration' 23:26:12,339 INFO [Initialization] done initializing Seam
Any thoughts would be appreciated.
Tx