Discussion:
[jboss-user] [jBPM] - jBPM REST API for custom client application
Justin Robbins
2012-05-10 21:55:18 UTC
Permalink
Justin Robbins [https://community.jboss.org/people/jhrobbin] created the discussion

"jBPM REST API for custom client application"

To view the discussion, visit: https://community.jboss.org/message/734916#734916

--------------------------------------------------------------
Hi folks,

I'd appreciate some suggestions on the topic of exposing jBPM REST API to a custom client application.

Cliff Notes:
Bulding a custom smartphone app (not just using BPM Console client).  Better to re-use the REST API already exposed by the Console-Server or roll our own REST API for jBPM?  (See details below for better explanation)

Details:
Let's say we want to build a smartphone app that provides a small subset of what the BPM Console browser app does along with some other functionality specific to our own application.  To be clear, the smartphone app doesn't just interact with jBPM.  If that were the case, then I assume it would be a no-brainer to have the smartphone app directly hit the Console-Server.

I'm thinking the smartphone app makes REST calls to our own server API.Â
Maciej Swiderski
2012-05-14 06:50:34 UTC
Permalink
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: jBPM REST API for custom client application"

To view the discussion, visit: https://community.jboss.org/message/735284#735284

--------------------------------------------------------------
I can see two options here that depends on your needs:
1. use console server REST api if you plan to employ the usage of console in your case as well, not talking about using it from the smartphone app but rather for admins/operators to perform additional actions on the processes and tasks
2. if option one is not valid in your case then I would go for using jBPM API instead of adding unnecessary layer (console server REST api) that will do pretty much the same what you need to do while embedding jBPM into your application

HTH
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/735284#735284]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Goutam Dutta
2012-05-16 15:19:43 UTC
Permalink
Goutam Dutta [https://community.jboss.org/people/duttagoutam] created the discussion

"Re: jBPM REST API for custom client application"

To view the discussion, visit: https://community.jboss.org/message/735985#735985

--------------------------------------------------------------
Can you please provide me any sample/guide? By using that i can call any process instance running in BPM engine. The issue i am facing is bypassing the "Form Based Authentication". Once i bypass the authentication part from my web module and then i can access the JSON file by invoking/reading using the REST call, and after that the rest of the part is pretty simple. I will appreciate if you can throw some light on this.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/735985#735985]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Umesh Bude
2013-01-03 06:59:55 UTC
Permalink
Umesh Bude [https://community.jboss.org/people/umesh.bude] created the discussion

"Re: jBPM REST API for custom client application"

To view the discussion, visit: https://community.jboss.org/message/787241#787241

--------------------------------------------------------------
Did you find solution for this problem? I'm facing similar challenge. I tried removing security filter entry in web.xml of jbpm-console. It helps in getting rid of authentication layer, but the problem is, few rest api calls are stateful and they fail if we remove auth layer.

Have you considered upon security if you bypass the auth layer? In my case, my custom app and the jbpm console, both will be behind a firewall. I'll provide authentication from my custom app and jbpm console rest api will be reachable only from my custom web app.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/787241#787241]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...