Rule activity



I have created a Policy and Ruleset, some facts based on elements (Get and
Set) and also on constants. The facts are published and the policy deployed.
Attention has been paid to use the correct instances of objects in the
'then' part of the rules.

There are 95 rules currently with more to follow that dictate the action to
take for certain types of Validation errors in documents submitted for
publication.
The set of actions is 'resupply' or 'defertoqa'. 'resupply' has priority.

The whole document contains many elements that fire rules but the document
will have just one value for action at the end, being either resupply or
defertoqa or the original action value being 'none'. None is where there are
no errors, defertoqa is for warnings and resupply is where even one error has
been detected.

Therefore the xml document has an element named 'action' initialised to
'none' for which there are both get and set facts in the Business Rule
Composer to make available to the Rule Engine.

On firing a rule, the then part of the rule should set the value of the
element depending on priority and then an 'Update' should reassert the value
of the element to be available to future rule firings.

I cannot get the element to be updated.

I look at the ENGINE RULE TRACE and get matches for each rule in my rule
table against the element with the Test Result correctly being identified to
True or False for each element, then doing an assert and doing the same for
the next element etc. To me this means that the if part of the rule is OK.
The Trace then does all the retracts.

It does nothing else.

There is no other activity. I expected to get something like an AGENDA
UPDATE.. nothing! I also expected that the 'action' element in the document
would have been updated from its ititial 'None' value. Not so!

What must I do to get it to do something usefull like update the input xml
file, or get it to return a value to the Call Rules shape. I have written a
class implementing IFactRetriever but still do not end up being able to use
parameters with my policy.

I would settle for either approach but I need to get some updating of
'action' either as an element or as a variable. Better still I would like to
be able to do either at my whim to best suit the situation.

Baldness looms with the pulling out of hair! The documentation leaves far
too many things unstated to be really useful and the examples are woeful.
Sorry if I am running off at the mouth but I am stumped and disgruntled
having spent days trying to progress this.

Help please.

cheers


--
PeterW
.



Relevant Pages

  • Re: I just dont understand why...
    ... get your facts straight - There is only one dead person! ... You are willing to make all sorts of wild speculations about these two dead ... yeah I think it is a terrible policy to guide people on the ... >> cannot go paddling together. ...
    (rec.boats.paddle)
  • Re: I just dont understand why...
    ... get your facts straight - There is only one dead person! ... yeah I think it is a terrible policy to guide people on the ... >>> The military is typically more concerned with the appearance of things ...
    (rec.boats.paddle)
  • Re: BizTalk 2004 :: Fact retriever :: more than 1 data connection?
    ... I'd say it looks like your xml document is missing the node you are trying ... I don't think the problem is with your retriever, but with your policy. ... > Hello Matt, ... >>> at Microsoft.RuleEngine.Rete.Rete.ExecuteInternal(Object facts, ...
    (microsoft.public.biztalk.general)
  • Re: The Greenpeace Chronicle
    ... >>Fair enough - I agree they should get their facts right before taking ... > But tackling a problematic policy isn't straightforward either, ... attention on the Brent Spar because it was the first major sea disposal (I ... one advantage of getting them to dispose of it on land is ...
    (uk.environment)
  • RE: Rule activity
    ... "PeterW" wrote: ... The facts are published and the policy deployed. ... > of the element to be available to future rule firings. ...
    (microsoft.public.biztalk.general)

Loading