cancel
Showing results for 
Search instead for 
Did you mean: 

Service Tasks with Activiti Rest

jindal8787
Champ in-the-making
Champ in-the-making
Hi folks

Our project is using activiti-rest in the micro-services architecture where different microservices are interacting to activiti-rest through a custom wrapper in between the micro-services and activiti rest war.
Now in few of our workflows, we are having requirement of some service tasks. So what should be the approach to put these service tasks java classes with activiti-rest? Right now activiti-rest is deployed independently on a server.
6 REPLIES 6

jbarrez
Star Contributor
Star Contributor
service tasks need to be in a jar on the classpath. So you'd need to make sure that server has the correct jars when it gets deployed.

jindal8787
Champ in-the-making
Champ in-the-making
Thanks Jbarrez!
So what do you suggest is the better approach -

1. Take Activiti-rest source code and put all service tasks and BPMNs inside its classpath and run.
2. Make a new project for the service tasks and BPMNs and put activiti-rest overlay inside the project.
3. Make a new spring-boot project and use activiti-spring-boot-starter-rest dependency and put our service tasks and BPMNs inside it.

vasile_dirla
Star Contributor
Star Contributor
Hi Amit,
for JVM there is no difference between the 3 cases you provided.
I would go with case 3. (this way your code is easier to develop and maintain and deploy.)

jindal8787
Champ in-the-making
Champ in-the-making
Thanks Vasile.

So, in case any suggestion on how I can override db.properties?

jbarrez
Star Contributor
Star Contributor
You don't. You create a Spring datasource and not use the db.properties approach (this is when Activiti is used standalone).

jbarrez
Star Contributor
Star Contributor
You don't. You create a Spring datasource and not use the db.properties approach (this is when Activiti is used standalone).