Implementation of service tasks using REST-full services

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2012 09:43 AM
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
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
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2012 10:50 AM
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.
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.
