0

I am trying to search and retrieve a fact from the Drools Working Memory using a FactHandle but unable to do so. I am using the kieSession.getFactHandle(object) method in order to retrieve the fact, but it returns NullPointerException every time. Please correct me if I am implementing the FactHandle the wrong way. Below is my implementation:

Person person = new Person().setName("David").setAge(33);
FactHandle factHandle = kieSession.getFactHandle(person);
kieSession.update(factHandle, person); // NullPointerException 
sam
  • 1,800
  • 1
  • 25
  • 47

0 Answers0