-
1. Re: Need help for jbpm in seam
gaborj Apr 1, 2010 5:19 PM (in response to sathishavunoori)Information is power!
You can check e.g.:
jbpm v4 userguide
but there are also books, like this from Packt:
JBoss jBPM -
2. Re: Need help for jbpm in seam
sathishavunoori Apr 2, 2010 11:32 AM (in response to sathishavunoori)hi Gabor Jakab,
very thanks for your great suggestion,
i have created a jpdl file for simple page navigation in ejbmodule like as follows.
my pageflow.jpdl.xml file<?xml version="1.0"?> <pageflow-definition name="gateOperation" 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-2.1.xsd"> <start-page name="gateoperation" view-id="/operations/success.xhtml"> <redirect/> <transition to="evaluateGate"> </transition> </start-page> <decision name="evaluateGate" expression="#{itGateOperationsAction.next}"> <transition name="persisted" to="win"/> </decision> <page name="win" view-id="/operations/failed.xhtml"> <end-conversation/> <redirect/> </page> </pageflow-definition>
and i am starting this pageflow in pages.xml file like this ,
<page view-id="/operations/success.xhtml"> <begin-conversation join="true" pageflow="gateOperation"/> </page>
this is my success.xhtml page
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://jboss.com/products/seam/taglib" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:a="http://richfaces.org/a4j" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich" xmlns:ws="http://www.wwl.com/jsf" template="../layout/template.xhtml"> <ui:define name="body"> <h3>updating successful...........</h3> <h:form > <s:link value="Click me" action="#{itGateOperationsAction.next}"/> </h:form> </ui:define> </ui:composition>
and this is my failed.xhtml page
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://jboss.com/products/seam/taglib" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:a="http://richfaces.org/a4j" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich" xmlns:ws="http://www.wwl.com/jsf" template="../layout/template.xhtml"> <ui:define name="body"> <h3>displaying failed....................</h3> </ui:define> </ui:composition>
and i have configured pageflow.jpdl.xml file in components.xml file like this
<bpm:jbpm> <bpm:pageflow-definitions> <value>pageflow.jpdl.xml</value> </bpm:pageflow-definitions> </bpm:jbpm>
my intention is when i click on the link in success.xhtml page it will call a method next() it was defined in a session scoped stateful session bean and this method will return a string
persisted
.
so after returning that string the transition name 'win' will be selected and want to redirect page to failed.xthml .but this flow was not working.
am i wrong anywhere ?
if so , kindly help me?
thanks for your help .
sathish avunoori