virtual P6R::P6ERR P6R::p6IRuleEngine::startFactsWithDOM ( p6IDOMXML pStatedFacts  )  [pure virtual]

This method has the same effect as the startsFacts() method above.

The difference is that the caller has already parsed the input facts into a p6IDOMXML component. The benefit of this function is that the pStateFacts input can be shared across several rule engine instances in order to improve performance. This way one set of stated facts can be parsed just once and shared with multiple (even currently) running rule engines.

An existing facts already defined when this method is called are freed. This method does not free or change any of the inferred facts already generated. Only the reset() method (see below) or via the rule engine XML language can the inferred facts be cleared.

Parameters:
pStatedFacts [IN] A standard DOM tree component holding our state facts, which could have been defined in XML or JSON.
Returns:
SuccessP6R::eOk 
FailureP6R::eNotInitializedA successful call to intialize() must be made before calling this funciton.
P6R::eInvalidArgpStatedFacts is NULL or bufSize is zero.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
Copyright © 2004 - 2010 P6R Inc. - All Rights Reserved.