9 Replies Latest reply on Aug 2, 2006 10:42 AM by kukeltje

    Exposing jBPM db using a Web Service

    sajid08

      Hi All,

      I want to know can we expose jbpm database using a webservice, like if we want to build a web service that tells us at which stage a process is at the moment or the value of a specific variable in the process.

      If yes then is there any example of that being done?, if yes then please redirect me towards that.



      Regards,
      Sajid.

        • 1. Re: Exposing jBPM db using a Web Service
          kukeltje

          Has been asked and answered before. jBPM itself is not exposed as a webservice. You have to build it yourself if you want it *now*. Same is true for the monitoring stuff, altouh I doubt it will be available as a webservice from jBPM any time soon

          • 2. Re: Exposing jBPM db using a Web Service

            What is the status of this with the CVS head?

            We have advanced quite a ways into our project now, and am working on a login module, and Remote Calls. We are using oracle, and can remotely call stored procedures from within the jBPM, but need to be able to call into jBPM from either a web services call now, or an RMI call from another program.

            It appears that we would need to write all our own jBPM stuff for the webservices, but what about an RMI call? I have searched all around the forum and web, and only found round-about mentions of this issue.

            James Ratcliff

            • 3. Re: Exposing jBPM db using a Web Service
              kukeltje

              No work has been done on a ws frontend yet. If things are implemented, it will initially focus on starting a process, signalling a token, ending/cancelling a task and getting a generic full task list. Getting a list of task based on the value of e.g. process variables is not in scope. If all goes well, some work might be sponsored.

              • 4. Re: Exposing jBPM db using a Web Service
                kukeltje

                Same is true for rmi. Nothing yet, but wrapping the jbpm context in e.g. an ejb should not be to difficult.

                • 5. Re: Exposing jBPM db using a Web Service

                  Yes, those are the type of calls we are needing now.

                  What about the RMI aspect of it.... I saw it mentioned in some functions for JBoss, but no real examples of usage, on only 1 brief mention with respect to jBPM usage.

                  We need a simple way to automate the transition of tasks from another application other than the web front.

                  James

                  • 6. Re: Exposing jBPM db using a Web Service

                    OK, sounds good. Im not sure which route we will go with, but we will try to put up our solution for the benefit of the rest of everyone.

                    If anyone else has already done either something similar, some pointers or code would be helpful as well.

                    James

                    • 7. Re: Exposing jBPM db using a Web Service
                      kukeltje

                      There was ejb (rmi) in jbpm 1, none existed in 2 and 3 will probably contain something before 4 is released.

                      But.... some work has been done on JMS access to jBPM. If you can put a command object in this queue via RMI you have a solution.

                      • 8. Re: Exposing jBPM db using a Web Service

                        Perfect, I searched and saw your other post now, (http://www.jboss.com/index.html?module=bb&op=viewtopic&t=83595)
                        somehow it slipped by.

                        Will test that out and see how it goes.

                        James

                        • 9. Re: Exposing jBPM db using a Web Service
                          kukeltje

                          Yep, I just re-read my other post and saw your comment as well. I admit it was a long time ago ;-)