final String key = "TestFixture70.testVariableMigration";
ProcessInstanceQuery processInstanceQuery = runtimeService.createProcessInstanceQuery();
// get process instance
ProcessInstance pi = processInstanceQuery.processDefinitionKey(key).singleResult();
VariableInstanceQuery variableInstanceQuery = getClearVariableInstanceQuery(pi.getId());
ExecutionQuery executionQuery = runtimeService.createExecutionQuery().processInstanceId(pi.getId());
TaskQuery taskQuery = taskService.createTaskQuery().processInstanceId(pi.getId());
JobQuery jobQuery = managementService.createJobQuery().processInstanceId(pi.getId());