as far as I know, variables are stored inside a map using the variable name as key. So using a single key to retrieve each respective value wont work. But due to the fact that you mention of separate processes, it is likely you refer to several instances of the same process. In this case each instance has its own context where a process variable is accessible, but not those of the other running instance. In some cases, you can use the history service.
Can you elaborate more on the exact use case, as this initial question seems kinda broad.
So here I’m starting the process with some process variables which I’ll get from the req body. I’m completing the process as well. So let’s consider the value of the variables:
So each time when I’m calling the user task to complete I’m initialising variables with that. So in these variables consider only indentNum is unique. So can I query using the field userType to get all the indentNum available for that particular userType. Because userType is generic. only some roles are there. You got my question? if not pls tell me