# External tasks tenant question

**URL:** <https://forum.flowable.org/t/external-tasks-tenant-question/12459>\
**Category:** Flowable Engine\
**Created:** [October 23, 2025, 3:33pm UTC](https://forum.flowable.org/t/external-tasks-tenant-question/12459 "2025-10-23T15:33:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![netanelk](https://avatars.discourse-cdn.com/v4/letter/n/9e8a1a/32.png) [@netanelk](https://forum.flowable.org/u/netanelk)\
**Post date:** [October 23, 2025, 3:33pm UTC](https://forum.flowable.org/t/external-tasks-tenant-question/12459/1 "2025-10-23T15:33:37Z")

</div>

Hi

I want to use External tasks on a service which is not part of the flowable engine which will call the flowable engine have 2 questions :

1. I saw there is no support for tenant filtering in the rest apis of external task - is it correct ?- so i can not aquire the jobs i need for a certain tenant so both spring client and the java client dont support it - i think this should be some basic feature in the external task

2. if I am using the java client for external task i need to handle the polling myself correct ? do you have a good example i can look on to see polling

---

<div class="post-metadata">

**Author:** ![filiphr](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/filiphr/32/315_2.png) [@filiphr](https://forum.flowable.org/u/filiphr)\
**Post date:** [October 23, 2025, 8:38pm UTC](https://forum.flowable.org/t/external-tasks-tenant-question/12459/2 "2025-10-23T20:38:03Z")

</div>

Hey @netanelk,

> [@netanelk](#):
>
> 1. I saw there is no support for tenant filtering in the rest apis of external task - is it correct ?- so i can not aquire the jobs i need for a certain tenant so both spring client and the java client dont support it - i think this should be some basic feature in the external task

If by Java client you mean [GitHub - flowable/flowable-external-client-java](https://github.com/flowable/flowable-external-client-java), then indeed this is not exposed there. However, this can most certainly be expanded to support this, we’ll also need to expose the tenantId over REST.

What you could do though is to implement your own security mechanism and then using `ExternalWorkerJobRestApiInterceptor` you can set the `tenantId` on `ExternalWorkerJobAcquireBuilder` for the user doing the REST call.

I assume that you have different services running for different tenants.

> [@netanelk](#):
>
> 1. if I am using the java client for external task i need to handle the polling myself correct ? do you have a good example i can look on to see polling

Yes indeed, if you do not use the Spring integration for the Java Client you’ll need to do the polling mechanism on your own. You can have a look at [`WorkerJobListenerContainer`](https://github.com/flowable/flowable-external-client-java/blob/main/workers/spring/worker/src/main/java/org/flowable/external/worker/listener/WorkerJobListenerContainer.java), our Spring integration, for an example of polling.

Cheers,  
Filip
