7 Replies Latest reply on Nov 4, 2008 9:46 AM by ziccardi

    jBPM Task Form

      Hi all.

      Sorry if my question can look stupid, but I'm a jBPM newbie.

      I tried to search through the internet and through the forum, but maybe I lack some information vital to perform a good query.

      Here is the problem:
      I have a jBPM flow defined through jPDL. I have created the xhtml files inside the jPDL editor and I've deployed the PAR file.

      Now, I want to integrate the xhtml files I created and deployed inside the PAR file inside my web application.

      How can I access thos file? What would be the best way to integrate such files?

      Many many thanks in advance,
      Massimiliano.

        • 1. Re: jBPM Task Form

          No-one has an answer?
          Is it an hard task? Or: my question is not clear? Do you need any other information?

          Regards,
          Massimiliano

          • 2. Re: jBPM Task Form
            salaboy21

            what does it mean:


            I want to integrate the xhtml files I created and deployed inside the PAR file inside my web application

            Tell us about your application.. you don't use the web console?
            give us more details

            • 3. Re: jBPM Task Form

              Thank you very much for your reply.

              >Tell us about your application.. you don't use the web console?
              >give us more details

              No. I don't use the web console. I want to integrate the pages inside my own web application (much likely the web console does).

              Which would be the best way?
              I' need to show the xhtml pages I deployed inside the .par file embedded inside my web application pages.

              Thank you in advance,
              Massimiliano

              • 4. Re: jBPM Task Form
                salaboy21

                This xhtmls generated inside the Eclipse Designer are for use it in the jbpm-console very quickly, if you want to use it in your web application, you must use the same web frameworks to include the xhtml and probably do it in the same way.

                May be the best approach is not use the PAR package and deploy your process with a java application and then your webapp use the process but not your presentation inside the PAR.

                Hope it helps

                • 5. Re: jBPM Task Form

                  That's a pity...

                  I wanted to give the team who developes flows the ability to define the flow and the input forms, so that they could update the whole flow (both the XML and the forms) in one time, without requiring to deploy again the web application...

                  Than, in my web application I would just need to show the pages they declared inside the PAR file...

                  I'll go on implementing my own interface and just using jBPM for flow execution.
                  Thank you very much!

                  • 6. Re: jBPM Task Form
                    salaboy21

                    I think this is the best approach.. but you can also look in how the jbpm-console include your deployed PAR.
                    But I personally think that is a wasting of time.

                    • 7. Re: jBPM Task Form

                      Just to close the discussion, in the event someone will find it useful (or has better ideas).

                      I'll go on this way:
                      1) I'll use ZK for the presentation LAYER (http://www.zkoss.org)
                      2) I'll declare a PAGE variable inside the task definition.

                      The PAGE variable will contain the .zul page definition (an XML file) containing all the code
                      needed to run the page. If some logic is needed, the page will contain the needed ZSCRIPT code.

                      My web application will work this way:
                      1) Will retrieve the current TASK(s).
                      2) Will ask the TASK for the content of the PAGE variable
                      3) Will show the .zul page as read from the PAGE variable (through Executions.createComponentsDirectly)

                      Regards,
                      Massimiliano

                      Regards,
                      Massimiliano