2 Replies Latest reply on Apr 2, 2010 11:32 AM by sathishavunoori

    Need help for jbpm in seam

    sathishavunoori

      Hi to our seam world ,
      I want to develop business process management in my seam application using jbpm. But i don't have much  knowledge about Bpm and jbpm.


      Can any one help me how should i get knowledge about jbpm and how would i develop processes and tasks and task assignments in my application?


      any help......


      Thanks in advance
      Sathish

        • 1. Re: Need help for jbpm in seam
          gaborj

          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

            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