We had been using the REST call repository/process-definitions?suspended=false to get the list of process-definitions.
For most of the GET requests activiti has provided the tenant-Id filter, however for process definitions there is no such filter.
We want the user to be able to see and launch only tenant specific templates.
The ACT_RE_PROCDEF has a tenant Id column so there could have been a filter for it.
One way could be that we fetch the tenant specific deployment Id's using REST Call repository/deployments?tenantId=tenantid
and write business logic to fetch process-definitions based on the deployment Id's fetch in above step.
But this is too much logic and 2 REST calls.
I think i am missing something, is there an easier way that i haven't thought of??