cancel
Showing results for 
Search instead for 
Did you mean: 

Custom API for Activiti Engine in Community Edition

chandanmb1
Champ on-the-rise
Champ on-the-rise
Hello,

Now i need to write some specific API for Runtime Service
like
1. Skip  a task in Activiti

Question
1. Is it possible to write our own API for the engine to perform like this ? If yes, how to achieve it.
2. Can we override the behavior of the API in Activiti  ?
     like SuspendProcessInstancebyID(ID) -> I need to implement our own logic of executing this method, is it possible ?

Regards,
Chandan
5 REPLIES 5

vasile_dirla
Star Contributor
Star Contributor
Hi Chandan,
have a look here, it should help you.
http://www.activiti.org/userguide/#_rest_support

You can create a custom REST endpoint and then you can do what you need by invoking the specific services.

Hello,

I need to create my own services. I dont want call the services which is been exposed.
I will develop some services for activiti engine. I will contribute to open source community edition

jbarrez
Star Contributor
Star Contributor
"like SuspendProcessInstancebyID(ID) -> I need to implement our own logic of executing this method, is it possible ?"

You can replace the existing services and plug in your own implementation easily.

Yes.
But how to implement it. Is there any sample examples ?

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

examples:
org.activiti.engine.test.api.runtime.ProcessInstanceSuspensionTest
Regards
Martin