clips.run();
String evaluar = "find-all-facts ((?v mydiagnosis)) TRUE";
PrimitiveValue value = clips.eval(evaluar);
String diagn= value.get(0).getFactSlot("diagn").toString();
JOptionPane.showMessageDialog(rootPane, "Diagnosis "+diagn);
clips.reset();
clips.run();
String evaluar = "find-all-facts ((?v mydiagnosis)) TRUE";
PrimitiveValue value = clips.eval(evaluar);
String diagn=((FactAddressValue) value.getValue()).getFactSlot("diagn").toString(); // There is no possible to set value.get(0) --- Why???
JOptionPane.showMessageDialog(rootPane, "Diagnosis "+diagn);
clips.reset();
But it doesn't work too.
Can someone help me please?
Thanks.