String varName = null;
String varVal = null;
for( JaxbQueryProcessInstanceInfo procInfo : result.getProcessInstanceInfoList() ) {
if( procInfo.getProcessInstance().getProcessId().equals(PROCESS_OBJ_VAR_ID) ) {
procInstId = procInfo.getProcessInstance().getId();
JaxbVariableInfo varInfo = procInfo.getVariables().get(0);
if( ! varInfo.getName().equals("inputStr") ) {
varInfo = procInfo.getVariables().get(1);
}
varName = varInfo.getName();
varVal = (String) varInfo.getValue();
break;
}
}
assertNotNull( "proc inst id", procInstId );
assertNotNull( "var id", varName );