We are using Flowable currently we use process variables to store the Foreign Key to the thing that the task relates to.
What we have found is that performance when getting tasks by process variable is fairly slow as it has to join the ACT_RU_TASK
to ACT_RU_VARIABLE
and we are then filtering on Type which doesn’t have an index.
Is there a field on 'ACT_RU_TASK` that would could use to store a Foreign Key information.