List<?> result = emf.createEntityManager().createQuery("select i from VariableInstanceInfo i").getResultList();
assertEquals(5, result.size());
log.info("### Retrieving process instance ###");
service = jpaService.loadStatefulKnowledgeSession(sessionId);
GetProcessInstanceCommand getProcessInstanceCommand = new GetProcessInstanceCommand();
getProcessInstanceCommand.setProcessInstanceId( processInstance.getId() );
processInstance = (WorkflowProcessInstance) service.execute( getProcessInstanceCommand );
assertNotNull( processInstance );
assertNotNull( processInstance );
assertEquals("SomeString", processInstance.getVariable("x"));