Using Flowable to call multiple REST APIs


I have an idea of using Flowable BPM engine on top of multiple REST APIs to execute processes which have steps that calls different methods on different APIs. Something like a single web page with login and list of tasks that users can execute.

I would like to have some kind of SSO that can be used in REST calls inside flowable so you don’t have to call the login method for every REST call inside the process. Also, I want to have same users in flowable modeler so I can decide which process can be executed by which user or user group.

Is it possible? Is there anybody who managed to do something like this?


Yes, that’s possible.

That can be done using a flowable-engine/ at main · flowable/flowable-engine · GitHub implementation, which can be referenced on the HttpTask. That way you can set whatever tokens or something else on the HTTP request.

You will need a shared user store in that case. You will need custom Spring Security (Modeler is a Spring Boot app) code for that, that’s not there out of the box.