Call to External Web Application

235 views
Skip to first unread message

ivan di maro

unread,
Jun 18, 2015, 5:59:18 AM6/18/15
to jbpm-...@googlegroups.com

Hello,

my company is looking for a workflow engine to insert in our applications, but, after having read most of the User Guide, we have not yet been able to understand if jBPM fulfill our needs.

 

This could be our typical scenario:

1.       The user request a function in our Web Application (JEE)

2.       The system start a business process designed in jBPM

3.       Each step of the process open a form in our Web Application by invoking a URL and passing some inpu parameters

4.       The process engine understand if the step has been completed based  on output parameters or on the call to a Web Service to know the state of the process instance

 

My questions are:

A.      is it possibile to associate a task to an external URL to open a form produced by our web application?

B.      Is it possibile to integrate users and roles of jBPM with the ones defined in our application (or in the hosting security context)?

 

I guess the answer shoul be yes in both cases, but can you give me some reference to the documentation where it’s described how to do it? Or even some sample code?

Mauricio Salatino

unread,
Jun 18, 2015, 6:20:06 AM6/18/15
to ivan di maro, jbpm-...@googlegroups.com
Hi Ivan,
jBPM is an integration framework so what you want to do can be done, not sure if it is the recommended way of doing it thou.. 
For example: 
1.       The user request a function in our Web Application (JEE)
Yes you can do this by creating an instance behind an EJB or using the jBPM EE Services integration : https://github.com/droolsjbpm/jbpm/tree/master/jbpm-services/jbpm-services-ejb

2.       The system start a business process designed in jBPM
Same here.. right? it doesn't matter if an user or a timer start a process it should be similar from the Java EE perspective, how do you work with Services should be exactly the same if it is a Method that a user calls from the UI or a system calling an EJB or MDB

3.       Each step of the process open a form in our Web Application by invoking a URL and passing some inpu parameters
Do you really need to do this? It sounds like you want some kind of Page Flow for the UI only, this can be achieved with jBPM but you will need to work on the integration side, depending on what information your forms are expecting, where your forms are, etc. You will not find much documentation on this because this is very specific to your usage.

4.       The process engine understand if the step has been completed based  on output parameters or on the call to a Web Service to know the state of the process instance
If you use the process engine API to complete tasks or WorkItemHandlers the process will move forward after each activity is completed.

HTH

--
You received this message because you are subscribed to the Google Groups "jBPM Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-usage+...@googlegroups.com.
To post to this group, send email to jbpm-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-usage/2f31e31a-086e-4d93-8f2a-f2950716fb50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
 - MyJourney @ http://salaboy.com
 - Co-Founder @ http://www.jugargentina.org
 - Co-Founder @ http://www.jbug.com.ar
 
 - Salatino "Salaboy" Mauricio -
Reply all
Reply to author
Forward
0 new messages