Tenant Id not returned



When using Flowable’s REST API, if you specify either “includeProcessVariables” or “includeTaskLocalVariables” when querying for tasks, the response does not contain the tenant that is associated with that task, it always contains an empty string
If you omit those query params (or set them to false), it works fine: the tenant is correctly set.

This happens for both GET /runtime/tasks and POST /query/tasks.

After some digging, I found that the SQL queries that are fired against the database are different when you want to include variables. It looks like one of them (for example, selectTasksWithRelatedEntitiesByQueryCriteria) is not including the tenant column.

Is this an expected behavior?

David Lamas.