// class not found, do nothing
}
}
}
}
TypeResolver typeResolver = new ClassTypeResolver(importSet, Thread.currentThread().getContextClassLoader());
// compile expression
Serializable expression = compiler.compile(parserContext);
// globals
Map globalDefs = getProcessInstance().getRuleFlowProcess().getGlobals();
Map globals = new HashMap();
if (globalDefs != null) {
for (Iterator iterator = globalDefs.entrySet().iterator(); iterator.hasNext(); ) {
Map.Entry entry = (Map.Entry) iterator.next();
try {
globals.put(entry.getKey(), typeResolver.resolveType((String) entry.getValue()));
} catch (ClassNotFoundException exc) {
throw new IllegalArgumentException("Could not find type " + entry.getValue() + " of global " + entry.getKey());
}
}
}