When I’m searching for tasks with subScopeId using the REST API, the whole list of tasks is returned (with all different types of existing subScopeIds: null or set).
Here’s my query using flowable-ui:
What isn’t the case if I use scopeId or scopeType, where the filtering works.
It seems that the subScopeId is ignored even if combined with other scopeId and/or scopeType.
And there’s no error returned.
Is it normal?
Ok, thanks Simon.
No, I don’t use the CMMN engine for now, just BPMN.
I just checked if it was possible to reuse existing (and unused?) TASK fields as custom attributes for an optimized “search task by local criteria”, because “search tasks by variable values” using a JOIN is not really efficient…
Thanks again for the check.
Using columns in the way you are explaining might be a bit dangerous, since Flowable has certain assumptions for those “unused” attributes such as scopeId, scopeType, subScopeId. It can lead to subtle bugs that are difficult to diagnose.