* Add all the reference entities to the session list
* of entities.
*/
Iterator<RName> ie = ef.referenceEntities.keySet().iterator();
while(ie.hasNext()){
IREntity e = ef.findRefEntity(ie.next());
String id = e.getID()+"";
if(entityInstances.containsKey(id)){
throw new RulesException("duplicate","new RSession()","Duplicate id "+id+" found between:\n"
+e.getName()+" and "+entityInstances.get(id).getName());
}
entityInstances.put(id,e);
}
try {
dtstate.entitypush(ROperator.getPrimitives());
dtstate.entitypush(ef.decisiontables);
} catch (RulesException e) {
throw new RulesException("Initialization Error",
"RSession",
"Failed to initialize dtstate in init(): "+e.toString());
}
}