Multitenancy - unable to utilize feature for process definitions

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2014 07:59 AM
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??
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??
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2014 11:29 AM
You are right. I've just added the tenantId and tenantIdLike request parameters to the service as well. It will be available on master soon.
Best regards,
Best regards,

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2014 08:16 AM
Thanks for the quick response. It works now
