try { saveLocalRuntime(null, Long.parseLong(o.toString()), engine); } catch (NumberFormatException e) { saveLocalRuntime(o.toString(), null, engine); finalKieSession.getEnvironment().set("CaseId", o.toString());
try { saveLocalRuntime(null, Long.parseLong(o.toString()), finalRuntimeEngnie); } catch (NumberFormatException e) { saveLocalRuntime(o.toString(), null, finalRuntimeEngnie); finalKieSession.getEnvironment().set("CaseId", o.toString()); saveLocalRuntime(caseId, processInstanceId, runtime);
@Override public void beforeProcessStarted(ProcessStartedEvent event) { mapper.saveMapping(new EnvironmentAwareProcessInstanceContext(event.getKieRuntime().getEnvironment(), event.getProcessInstance().getId()), ksessionId, managerId); saveLocalRuntime(caseId, event.getProcessInstance().getId(), runtime); ((RuntimeEngineImpl) runtime).setContext(ProcessInstanceIdContext.get(event.getProcessInstance().getId())); }
try { saveLocalRuntime(null, Long.parseLong(o.toString()), engine); } catch (NumberFormatException e) { saveLocalRuntime(o.toString(), null, engine); finalKieSession.getEnvironment().set("CaseId", o.toString());
@Override public void beforeProcessStarted(ProcessStartedEvent event) { mapper.saveMapping(new EnvironmentAwareProcessInstanceContext(event.getKieRuntime().getEnvironment(), event.getProcessInstance().getId()), ksessionId, managerId); saveLocalRuntime(caseId, event.getProcessInstance().getId(), runtime); ((RuntimeEngineImpl) runtime).setContext(ProcessInstanceIdContext.get(event.getProcessInstance().getId())); }
try { saveLocalRuntime(null, Long.parseLong(o.toString()), finalRuntimeEngnie); } catch (NumberFormatException e) { saveLocalRuntime(o.toString(), null, finalRuntimeEngnie); finalKieSession.getEnvironment().set("CaseId", o.toString()); saveLocalRuntime(caseId, processInstanceId, runtime);