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 :
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 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
If by Java client you mean GitHub - 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.
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, our Spring integration, for an example of polling.