IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

How to invoke BPM from JSF

  • 1.  How to invoke BPM from JSF

    Posted Mon December 06, 2010 03:08 PM

    Hi all,

    UserInterface is Developed in JSF and Jboss is application server, here need to invoke one of webMethods process model which expect broker document as a receive step, to invoke BPM, how to publish the webMethods broker document to the webMethods- broker from JSF , i think by java-broker API can able to publish the document to webMethods broker , can any one help me on this with sample excerices or with steps and also send me java-broker API. and this Canaonical document need to maintain the correlationID in BPM.

    Regards,
    Anil Kumar Ellendula


    #webMethods-BPMS
    #BPM
    #webMethods


  • 2.  RE: How to invoke BPM from JSF

    Posted Tue December 07, 2010 08:19 AM

    Hi Anil,

    I would write a flow service that takes the document you need to start the process and publishes it using pub.publish:publish.

    To call this sevice you could

    • expose it as a webservice and call it this way from your JSF application or
    • use com.wm.app.b2b.client.Context to invoke your service.

    Hope that helps.

    Regards,
    Mathias


    #webMethods
    #webMethods-BPMS
    #BPM


  • 3.  RE: How to invoke BPM from JSF

    Posted Tue December 07, 2010 04:54 PM

    Hi,

    thanks for reply, i knew the approach you mentioned here, but i donot want to go this approach, my requirement insisting to write code publish document to the broker. i want it can be done java -broker API in JSF
    regards,
    Anil Kumar ellendula


    #webMethods
    #BPM
    #webMethods-BPMS


  • 4.  RE: How to invoke BPM from JSF

    Posted Wed December 08, 2010 03:49 PM

    You might be able to set up a JMS queue into the broker and do a JMS publish?

    Or you could try invoking a flow service directly via the http invoke url (see [URL]http://webmethodssag.blogspot.com/2010/10/starting-process-from-web-url.html[/URL]). Getting the data format correct will take some time but it should work.

    The best option is exposing the flow service as a web service. Why is that not an acceptable solution?


    #BPM
    #webMethods
    #webMethods-BPMS


  • 5.  RE: How to invoke BPM from JSF

    Posted Wed January 05, 2011 03:18 PM

    You can also write a very simple Java Service using Developer that calls the flow service pub.publish:publish with the incoming doc. After that you can invoke it using the http invoke url technique as posted by kwilliams.


    #webMethods
    #BPM
    #webMethods-BPMS


  • 6.  RE: How to invoke BPM from JSF

    Posted Wed January 05, 2011 11:16 PM

    IMO, a Java service would be the wrong thing to do.


    #webMethods
    #BPM
    #webMethods-BPMS


  • 7.  RE: How to invoke BPM from JSF

    Posted Wed January 05, 2011 11:21 PM

    An old thread but perhaps the following is still helpful…

    I find it odd to view writing code to publish a document to the Broker as a “requirement.” At best it is a design decision that has been made for you. :slight_smile:

    As Kevin Williams mentioned, one approach is to use the JMS API along with the Broker as a JMS provider. Another is to use the Broker Java API directly (it’s proprietary). Another is exposing a web service on IS. Yet another is calling an IS service via HTTP get or post (post is probably more appropriate).

    If it were me, I’d do plain ol’ XML (POX) over HTTP post.


    #webMethods
    #BPM
    #webMethods-BPMS


  • 8.  RE: How to invoke BPM from JSF

    Posted Fri January 21, 2011 08:48 AM

    Hi reamon,

    Thanks for reply,
    Can able send send the sample java-Broker API to publish the document from JSF.

    Regards,
    Anil Kumar Ellendula


    #webMethods-BPMS
    #webMethods
    #BPM


  • 9.  RE: How to invoke BPM from JSF

    Posted Fri January 21, 2011 05:02 PM

    The documentation from Software AG has details and examples for using the Broker Java API.


    #BPM
    #webMethods
    #webMethods-BPMS