As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<br>Map<String, Object> vars = someRegularValues();<br>Map<String, String> additionalInfo = getThisFromSomewhere();<br>vars.put(SOME_CONSTANT, additionalInfo);<br>runtimeService.setVariablesLocal(processInstanceId, vars);<br>… // Some time later<br>// This is the line that causes the crash:<br>Map<String, Object> vars = runtimeService.getVariablesLocal(processInstanceId);<br>// So this line does not get executed when too much processes are loaded at a time:<br>Map<String, String> additionalInfo = (Map<String, String>)vars.get(SOME_CONSTANT);<br>