CMMN Plan Item Variables

Is it possible to set and get local variables for a plan item in a case model?
Documentation not 100% clear.
The documentation states:

A case instance can have variables (called case variables ), but also plan item instances and human tasks can have variables.

The api really does not appear to reflect the part about variables for plan item instance, or I am really confused.



plan item instances can have ‘local’ variables (i.e. not stored on the case instance level), by calling #setVariableLocal instead of #setVariable. Same for tasks (e.g. when using a TaskListener).

When looking up variables, the variables are looked up in reverse order, starting from the local scope up to the case instance.