Hi,
I'm trying to update the facts before a flowgroup and after a script
task(written in java). I was thinking of calling update(myFact) inside the
script task, but how do I call it?
Do I need to press in the session to the parameter map and call
session.update(FactHandle handle, Object object)??
--------------------------------------------------
StatefulKnowledgeSession session = getKnowledgeAgent("abc")
.getKnowledgeBase().newStatefulKnowledgeSession();
Map<String, Object> parameterMap = new HashMap<String,
Object>();
parameterMap.put("myFact",myFact);
session.insert(myFact);
session.startProcess("rruleflow", parameterMap);
session.fireAllRules();
--------------------------------------------------
I'm new to drool, please help!
--
View this message in context:
http://drools.46999.n3.nabble.com/How-to-update-facts-in-Script-task-Rule...
Sent from the Drools: User forum mailing list archive at
Nabble.com.