Reading process variable from outside process

Hello everyone.

We’re facing a problem with reading process variables from oustide running process. From what i’ve seen
calling runtimeService.getVariable(processId, variableName)) causes increment in a version column on the process/variable, which causes database flush after transaction ends. Meanwhile a process that is running is accessing variables in it’s steps and flushes data to database as well.

Is there a way to read process variable from outside process without incremeting version and causing OptimisticLockException?

Thanks in advance for all the answers.

Hi @kemyR,

usally a GET request should not update the version (and the content) of the variable.

Could you please elaborate on the code you use to get the variable and where it is invoked?

Hope this helps, Ingo