Re: [rules-users] Get List of FactTypes in a KnowledgeBase
kBase --> getKnowledgePackages() --> getFactTypes() returns the definitions for a given package kSession --> getObjects( new ClassObjectFilter( factyype.getFactClass() ) ) returns the actual instances of a given fact type Davide -- View this message in context: http://drools.46999.n3.nabble.com/Get-List-of-FactTypes-in-a-KnowledgeBase-tp4020197p4020202.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Get List of FactTypes in a KnowledgeBase
Look at the Expert docs, for drools.getWorkingMemory(). This might be what you need. the iterateObjects() method on WorkingMemory lets you see all facts in working memory at runtime. -- View this message in context: http://drools.46999.n3.nabble.com/Get-List-of-FactTypes-in-a-KnowledgeBase-tp4020197p4020200.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users