-
1. Re: How to call an external webservice from a bpm process in jbpm6?
salaboy21 Sep 16, 2014 9:39 AM (in response to antonio.giambanco)1 of 1 people found this helpfulHi Antonio,
I usually recommend this way:
https://github.com/droolsjbpm/jbpm-playground/tree/master/customer-relationships-workitems
Which involves creating a WorkItemHandler implementation that deals with the technical details of calling the web service, no matter which type of web service it is.
HTH
Regards
-
2. Re: How to call an external webservice from a bpm process in jbpm6?
antonio.giambanco Sep 19, 2014 9:52 AM (in response to salaboy21)Thanks a lot for information salaboy21 it was very usefull . . .
Now I think I miss last step, i mean:
- I created my jar file
- I created my project inside the console kie-workbench with .wid and so on
- understand how to import jar file (step1) inside the console
reading many old postes I found out that I have to way to do that:
- put custom jar inside jbpm-gwt-console-server.war/WEB-INF/lib
- drop jbpm-installer/dependencies and rerun installation
Are there any other way? Both of them seems unconventional in production enviroment (I'm trying to understand best practives for doing things)
Thanks
-
3. Re: How to call an external webservice from a bpm process in jbpm6?
salaboy21 Sep 19, 2014 11:18 AM (in response to antonio.giambanco)1 of 1 people found this helpfulHi Antonio,
Can you please specify what kind of jar are you planning to add to the class path?
Notice that this path" jbpm-gwt-console-server.war/WEB-INF/lib is very old and it was for the jBPM5 version.
Now we have a similar path for version 6 (and of course you don't need to re install the whole app).
Most of the time we recommend to place the workitemhandler implementations in a fixed directory (which forces you to stop the application server) to make sure that when you run your processes you don't have a multiple versions of the same class in the same class path at the same time. Notice that this are technical artefacts and not business artefacts which tends to change less than the business assets that needs to be updated frequently.
HTH
-
4. Re: How to call an external webservice from a bpm process in jbpm6?
antonio.giambanco Sep 19, 2014 11:55 AM (in response to salaboy21)Thanks salaboy21 explanation very clear,
I' m using jBPM6.1 with wildfly8.
Turning back to my external jar, I created the package with the workitemhandlers on it and I would like to call them from my process.
So now I understand that I have to put this jar in the classpath but I didn't undersand if this is already defined or I have to define it making some configuration in the AS.
-
5. Re: How to call an external webservice from a bpm process in jbpm6?
salaboy21 Sep 19, 2014 12:38 PM (in response to antonio.giambanco)Hi Antonio,
I'm not following you with your question.
If you have a jar with your work item handlers implementations you should add that to the application class path as described in the documentation.
Inside the web-inf/lib directory and then when you run the application your processes will be able to use those workitemhandlers to interact with external applications.
-
7. Re: How to call an external webservice from a bpm process in jbpm6?
salaboy21 Sep 19, 2014 1:13 PM (in response to antonio.giambanco)Hi Antonio, you need to explode the war file into a directory called: jbpm-console.war (so instead of having a compressed file you will end up having a directory of the same name) and inside you will need to add the jar in the mentioned directory.
HTH
-
8. Re: How to call an external webservice from a bpm process in jbpm6?
antonio.giambanco Sep 22, 2014 6:54 AM (in response to salaboy21)I got it . . . I had to fix CustomWorkItemHandlers.conf file inside web-inf but finally it's working
Thanks a lot salaboy21