10 Replies Latest reply on Oct 3, 2009 7:08 PM by kukeltje

    jbpm4.1 process project

    noicangi

      hi this is my configuration: jboss 5.1.0ga + mysql5 + jbpm4 + galileo + tools m3

      my question is, how i create a jbpm4 process project on eclipse? how can i do that?
      or i need to create a jbpm3 project and a jbpm4 process definition in that project? also i noticed that on jboss with signavio the swinlines are missing, this is normal? or i commited an error during instalation?


      thanks

        • 1. Re: jbpm4.1 process project
          sebastian.s

          Starting with jbpm 4.0 there is no project type named "process project" anymore. Just create a java project and afterwards create a new jbpm process definition. The swimlanes are missing in the Signavio editor and this is normal. About 2 weeks ago I was talking to one of the Signavio guys about this on a exhibition and he told me that this was just the first step for the integration and maybe further elements will be added in the next releases.

          HTH

          • 2. Re: jbpm4.1 process project
            noicangi

            Thanks Sebastian for the information it's a very complete answer, but on eclipse galileo using the jboss tools m3, i create a java proyect and create a bpm4 process definition, but the libraries are not copied into de the project, also the build.xml, jbpm.cfg.xml,jbpm.hibernate.cfg.xml and other jbpm.properties files. how can i do that? it is posible to put this on the jbpm user guide?

            i'm new in jbpm and i'm recently change from jbpm3 to jbpm4.

            thanks

            noicangi

            • 3. Re: jbpm4.1 process project
              sebastian.s

              Hi noicangi,

              in the section of the user's guide describing the installation of jBPM there is also the step of adding a library entry for the jBPM libraries. I have done this and afterwards I just use "Add user library" in eclipse chosing jBPM libraries or however you called them to add the libraries to the classpath.

              Regarding the configuration files:

              To start a new project to make unit tests for experimenting I always copy the following files from the example project to my project.

              jbpm.cfg.xml
              jbpm.hibernate.cfg.xml
              jbpm.mail.properties
              jbpm.mail.templates.examples.xml
              logging.properties
              


              Not very convient but works for me. I fully agree that there should be a more convient way to quickly define a process and deploy it to jBPM.

              • 4. Re: jbpm4.1 process project
                noicangi

                thanks again, i configured all libraries like de user guide describes, but as you said "thats right its not the ideal procedure" but if works its just fine.

                the only thing thats its not clear for me is that i configured the jbpm libraries as the user guide says, but when i create the java project the jbpm libraries not apears on the list to include.


                im evaluating returning to jbpm3....but bpmn notation of jbpm4 its great!

                • 5. Re: jbpm4.1 process project
                  sebastian.s

                  As I said you explicitly have to add the libraries to the project.

                  Right click on your project -> Select properties -> Select Java Build Path

                  Right there select the tab "Libraries" and on the right side click "Add Library", chose User Library in the wizard and click next. Now select the entry you previously created according to the documentation.

                  HTH

                  • 6. Re: jbpm4.1 process project
                    noicangi

                    thanks sebastian, i was doing the previous steps you mensioned but i was stuck on the list because i wasn't able to identify "my bpm library" that was on user libraries.

                    now i will copy the configuration files and properties to start studing jbpm.

                    Very grateful

                    Noicangi

                    • 7. Re: jbpm4.1 process project
                      kukeltje

                      you can also add al these config files in a jar and add that to the library as well. Or put them in a directory and add that to the library (that's what I did)

                      • 8. Re: jbpm4.1 process project
                        koen.aers

                        More convenience is on the way. AFAICS it will be for 4.3 though (Januari 1st 2010).

                        Regards

                        • 9. Re: jbpm4.1 process project
                          noicangi

                          that's and excelent idea, kukeltje complementing the idea from sebastian, thanks.

                          i think i cannot wait until january.....i need to finish this university project, and go to beach! :P ( summer time on this latitude...)

                          • 10. Re: jbpm4.1 process project
                            kukeltje

                            Is it is a latitude where it is always summertime? Then I don't envy you.... :-)