Fetch external service tasks tenant aware

Hi guys,

is it possible to fetch external service tasks for a specific tenant (e.g. filter by tenandId)? We are implementing a usecase with shared process models (for all tenants) with tenant specific worker.

A solution could be

  1. to be able to use expressions in the topicName (e.g. "dosomething_${tenandId})
  2. or extend the fetch API (https://docs.camunda.org/manual/7.7/reference/rest/external-task/fetch/) with a tenandId

Any suggestions or plans on this matter?

If you use authorizations, then you can create users that are assigned to single tenants and make queries on their behalf. The result should then only contain tasks for that tenant.