logManager.printText(level5, false, "Try 1: Use the search strategy");
}
//---> 2) Use the Entity Tree Strategy.
SearchResult searchResult = kb.evaluateSearchContextNodeFormula(contextNode, ovInstances);
if(searchResult!= null){
if (logManager != null) {
logManager.printText(level5, false, "Search Result: ");
for(String[] result: searchResult.getValuesResultList()){
String resultOv = " > ";
for(int i = 0; i < result.length; i++){
resultOv += result[i] + " ";
}
logManager.printText(level5, false, resultOv);
}
}
//Result valid results: Add the result to the tree of result.
try {
mFragInstance.addOVValuesCombination(
searchResult.getOrdinaryVariableSequence(),
searchResult.getValuesResultList());
mFragInstance.setStateEvaluationOfContextNode(contextNode, ContextNodeEvaluationState.EVALUATION_OK);
if (logManager != null) {
logManager.printText(level5, false, "Node evaluated OK");