How to get list of process a user can instanciate

1
0
-1

Hello,
I'm working on an integration of Bonita in eXoPlatform portal.

I wish to be able to initiate process and realize task directly from the portal. I did a first version which work on Bonita 6, and now I'm tryiing to update.

I firstly trying to get the list of available process in bonita, but I wish to get only the process launchable by the current user. Actually, I'm doing programmatically, with ;
SearchResult processDeploymentInfoSearchResult = processManagementAPI.searchProcessDeploymentInfosUsersManagedByCanStart(user.getId(), new SearchOptionsImpl(0, 10));

But, as I could read in your documentation, I'm not sure this is the good method.
In addition, I found in the REST API a way to get the process list :
http://localhost:9090/bonita/API/bpm/process?p=0&c=10

but this returning all process.

So, is there a way to get a "user process list", preferaly in REST ?

Thanks

No answers yet.
Notifications