1 2 Previous Next 17 Replies Latest reply on Apr 2, 2014 8:17 AM by sward

    How to import a project created in eclipse into JBPM-Console

    suraj.bahl.50

      Hi,

       

      I have created a sample jbpm workflow (evaluation) in eclipse. I am able to integrate it with my web application, user can start the process from front end, claim tasks, complete them and in back-end my service class execute workflow/tasks using the api's exposed by runtime manager.

       

      Now i also want to include this process in JBPM-console. Can you please show me how can i do that?

       

      Regards,

      Suraj

        • 1. Re: How to import a project created in eclipse into JBPM-Console
          suraj.bahl.50

          Hi,

           

          Can someone please tell me is it possible to deploy the process created in eclipse into jbpm-console?

          • 2. Re: How to import a project created in eclipse into JBPM-Console
            salaboy21

            You just need to copy the process to the jbpm console and have your project there. Once you have your project there you will need to build it and deploy it so it will create a runtime inside the console to run the process.

            • 3. Re: How to import a project created in eclipse into JBPM-Console
              jjxman

              Hi Suraj..

               

                I'm on JBPM 6 and Jboss 7.1.1

               

              here is what i do to import it to jbpm-console to run

               

              1) take the bpmn file

              2) put it to jbpm-console/WEB-INF/META-INF/classes the bpmn files

              3) trigger...

               

              however.. I've no clue how to get the process model to display in jbpm-console even tho the process instances are shown in console.

              • 4. Re: How to import a project created in eclipse into JBPM-Console
                salaboy21

                Hi Joey,

                Not sure why are you doing that..

                You just run the jbpm console and then:

                1) create a new project

                2) create a new business process  which will open designer and then

                3) go to the import BPMN inside the process designer option palette (the one on top of the canvas) look to the different options there.. you can paste the xml content or browse the file from your local hardrive

                 

                Once you have that you will need to build and deploy the project in order to see the process in the process definition list..

                • 5. Re: How to import a project created in eclipse into JBPM-Console
                  jjxman

                  Hi,

                   

                    I we run it via console, it goes thru Drools-Guvnor.  Sometimes we don't want drools-guvnor to manage the repository.  One of the problems I'm facing is that I could execute the bpmn file and gets logged into the h2 database but am requiring to view the process instance via jbpm-console. Reason is the application Im building on just want a simple workflow to run and execute without that much complications with drools-guvnor.

                   

                     I'm trying also on jbpm5.4 on jboss7.1.1 and i realize the console also uses drools-guvnor to view the instances even tho it's executed (via h2, instances are created and completed). Anyone have any idea how to configure the console not to view the process through guvnor but local repository?

                  • 6. Re: How to import a project created in eclipse into JBPM-Console
                    salaboy21

                    Oh ok, I would recommend you to take a look at jBPM 6, I though you were using jBPM 6, jBPM 5 and the console in 5 is a completely different story.

                    • 7. Re: How to import a project created in eclipse into JBPM-Console
                      jjxman

                        I've tried JBPM6 on JBoss7.1.1 and the console lists the process instances that is executed. However, I could not get the process-model to view the state of the instances that has executed even tho it's listed in the Process Instance list.

                      I've exported the bpmn image to PNG and deployed to the following folders in jbpm-console hoping the process monitor can pick it up

                      1) jbpm-console.war/WEB-INF

                      2) jbpm-console.war/WEB-INF/classes

                      3) jbpm-console.war/WEB-INF/classes/META-INF

                      3) jbpm-console.war/


                      the PNG is of a process

                      packageName.BMPNProcess.bpmn


                      and I've exported and renamed the PNG to the following

                      BPMNProcess.PNG

                      packageName.BPMNProcess.PNG

                      BPMNProcess-image.PNG

                      packageName.BPMNProcess-image.PNG


                      and yet the jbpm-console is unable to pickup and view the BPMN process.


                      Is there a configuration i'm missing here?

                      • 8. Re: How to import a project created in eclipse into JBPM-Console
                        suraj.bahl.50

                        Hi Mauricio,

                         

                        How do i import back-end java classes like UserGroupCallback, EnvironmentProducer etc which i have created to support my process?

                         

                        Regards,

                        Suraj

                        • 9. Re: How to import a project created in eclipse into JBPM-Console
                          salaboy21

                          Hi Suraj

                          You don't need that.. because those are provided by the jbpm console/kie workbench. You can configure the UserGroupCallback to use, but for the environment you don't need anything really. What exactly is your UserGroupCallback doing? and why do you need a special one?

                           

                          Regards

                           

                          Mauricio

                          • 10. Re: How to import a project created in eclipse into JBPM-Console
                            suraj.bahl.50

                            Hi Mauricio,

                             

                            I am not doing much in UserGroupCallback other than checking whether user/group exist or not and which group a user belongs to.

                             

                            Let me give you little more background what i am trying to do. i have created a process which have multiple human tasks. I have also created my own UI through which user can take action on tasks and a service layer which interacts with JBPM API to execute/retrieve tasks.

                             

                            Now i want that same process to be accessed through JBPM console also so user can access the tasks through either JBPM console/custom UI and work on it. Is it possible? if yes, then how do i import same persistence.xml so they point to same database?

                             

                            Thanks,

                            Suraj

                            • 11. Re: How to import a project created in eclipse into JBPM-Console
                              jjxman

                              hi suraj

                              good luck in your quest..

                              seems like the product.. 5.2 to 6.0 is 1/2 baked.. the programmers are arrogant n seeming buzy than passing their knowledge n r more interested in squeezing u into commercial licensing than providing the required knowledge to work on the real goals of jbpm.

                               

                              I'm sure on googling.. 9.5 of the results are in answered and ur usage of the product is wrong (based on precedence) .  hope this gets answered (in someone's free time)

                              • 12. Re: How to import a project created in eclipse into JBPM-Console
                                salaboy21

                                Hi Suraj,

                                Regarding the UserGroupCallback, Are you checking the users/group existence in some particular storage? or just using the defaults?

                                 

                                Regarding your specific requirements, I would recommend to do it the other way around. If you need that the same processes are executed in the console and access them from your application I would recommend you to use the REST/JMS endpoints to interact with the runtime environments created inside the console. These runtime environments contains attached some listeners and loggers that generate all the information necessary for the console to work. Then your application just need to use the remote services instead of the console consuming your own configurations. In such case you don't need to move anything into the console just the processes and put them into different projects if that's necessary.

                                 

                                What you mention can be achieved, but I see it as a ton of work that needs to be done so your sessions generate the same information that the console is generating. Do you see the point? If you integrate with the existing runtimes your application doesn't need to have any jBPM configuration which is usually good when you want to decouple your app from all the dependencies related with the underlaying framework.

                                 

                                Hope this helps!

                                • 13. Re: How to import a project created in eclipse into JBPM-Console
                                  salaboy21

                                  Joey Teo wrote:

                                   

                                  hi suraj

                                  good luck in your quest..

                                  seems like the product.. 5.2 to 6.0 is 1/2 baked.. the programmers are arrogant n seeming buzy than passing their knowledge n r more interested in squeezing u into commercial licensing than providing the required knowledge to work on the real goals of jbpm.

                                   

                                  I'm sure on googling.. 9.5 of the results are in answered and ur usage of the product is wrong (based on precedence) .  hope this gets answered (in someone's free time)

                                   

                                  Joey, really??

                                  Before posting a comment like this one please check how the forums work and what are the "behaviour rules" for this community forums. Look at my level of contributions, which is based on helpful answers and then look at yours (Newbie level in the forums). So please, don't be rude. This is something that we do because we love the projects, not because someone is paying us. In fact nobody pays me to answer here, I just do it to help the community.

                                   

                                  If we weren't interested in sharing our knowledge, why do you think that we are doing here answering questions? I'm writing my third book on jBPM now, what do you think that is about?

                                   

                                  Please remember that this forum is about the jBPM community project and not a Product.

                                   

                                  If you google and you find one message that mention something about buying a license or pay to get an answer please post it back here. Because as far as I remember, I'm only recommending contacting sales@redhat.com when the question is explicitly "where do I can buy support for jbpm"? or something like that, for technical questions we never mention the subscriptions. So please, I encourage you to google it and let us know what your findings are.

                                  • 14. Re: How to import a project created in eclipse into JBPM-Console
                                    suraj.bahl.50

                                    Hi Mauricio,

                                     

                                    i think it will be better to do it in the way u have suggested and access console through JMS/Rest. Let me try that.

                                     

                                    Regards,

                                    Suraj

                                    1 2 Previous Next