cancel
Showing results for 
Search instead for 
Did you mean: 

How to make the workflow call the outer Java program

alper
Champ in-the-making
Champ in-the-making
I installed the Activity Explorer, and H2 standalone server. Everything works fine, as I see: I can start a workflow, claim and complete user tasks, but that's not enough. I need the workflow to call external services, suppose via REST. But I have no idea how to deploy the code to do that.
Is that possible using javascript (or groovy) in the workflow xml, or is there any way to inject Java code, or even deploy Java module?
I am totally confused, any example could help.
Thank you.
1 REPLY 1

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

you can use java service task (http://www.activiti.org/userguide/#bpmnJavaServiceTask) there are many examples in jUnit tests (activiti source). If you are using REST you can implement your own process step to call REST service.

Regards
Martin