Explanation :
Use retract method to remove the fact from the KnowledgeSession Assume ksession is the StatefulKnowledgeSession object
Use retract method to remove the fact from the KnowledgeSession Assume ksession is the StatefulKnowledgeSession object
List list = new ArrayList();
list.add("One");
list.add("Two");
list.add("Three");
ksession.insert(list);
ksession.fireAllRules();
ksession.retract(ksession.getFactHandle(list));
No comments:
Post a Comment