processVariable filtering with camunda-external-task-client-js

Hello,

This topic is more about asking a new feature on the REST API (/external-task/fetchAndLock)

We would like to fetch all tasks that hasn’t a specific variable or variable value.

The reason:

Currently, we can’t debug easily when an external task doesn’t work.
We have some workarounds but It would be nice if the rest API could negate a filtering (not equal to).

We want to add a variable through cockpit “meta.debug: true” (let’s say) for a specific process instance that has an issue, all workers don’t retrieve this process instance anymore (due to negative filtering feature, NOT equal to “meta.debug: true”). This way, we can run a local worker that filtering only process variable equal to “meta.debug: true”.

As a workaround, we can always define “meta.debug” and defining a default filtering when the value is false but It’s a bit difficult to enforce this rule and we think that having the possibility to negate (not equal to) a filtering is a lot cleaner.