cancel
Showing results for 
Search instead for 
Did you mean: 

Implementation of service tasks using REST-full services

lefty
Champ in-the-making
Champ in-the-making
I our infrastructure we have an array of services exposed via http rest. Our goal is to define and execute process workflows in Activiti that orchestrate those external services. We know that Activiti supports the definition of service tasks which are implemented as SOAP based web services (using the implementation="##WebService" attribute on the task definition).

Our question is whether we may define service tasks implemented as restfull services in a similar (declarative) way. We have our business logic centralized in one location and as such we would really want to avoid duplicating it by implementing anything in Activiti.

In your experience, which would be the best way to go about this problem using Activiti?


Lefty
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
You will need to add your own Java logic for such service tasks I'm afraid.
Another valid option (and maybe even preferable) would be to use something like Apache Camel to do the rest call. In that case, the routing to the rest service is defined in Camel. There is a camel example in the Activiti code base.