Hi,
I have asserted a fact, run the engine and removed the fact. There is a
rule in the engine which works on the fact. Now, if you see the output
below, The time taken by the rule is very large the first time. Any
clues why ? (I have retracted the fact after the first time the rule has
executed. So the second time, I again assert the fact, run the engine
and retract the fact.)
Thanks,
Adarsh
--- start loading sample data
--- Loading persistence properties ... done
--- Loading InstanceManager ... done
PersistenceManagerImpl::createQuery:select p from
com.longsys.infrastructure.rules.Pop p
com.longsys.infrastructure.rules.Pop
popArray[0] oid: 0
pop name: Arlington
ready to assertfact
DEBUG106: Inside assertFact
Inside createRouter index : 100
--- Loading InstanceManager ... done
PersistenceManagerImpl::createQuery:select r from
com.longsys.infrastructure.rules.Router r where r.index=100 and r.pop=0
Router::setType:7505
DEBUG32
The router: com.longsys.infrastructure.rules.Router@70888e
router id: 101
Inside first rule.Router::setType:7506
after running engine
Time taken by rule: 451
DEBUG3.5: [Lcom.longsys.infrastructure.rules.Router;@706dc3:1000
Router::setType:7505
DEBUG4: 100
DEBUG106: Inside assertFact
Inside createRouter index : 100
router id: 101
Inside first rule.Router::setType:7506
after running engine
Time taken by rule: 21
--- end loading sample data
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------