Rule activity
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server General > Rule activity




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Rule activity  
PeterW


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-03-05 10:51 PM

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 ar
e
no errors, defertoqa is for warnings and resupply is where even one error ha
s
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 documen
t
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 t
o
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





[ Post a follow-up to this message ]



    RE: Rule activity  
PeterW


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-04-05 10:56 PM

No brain, no pain!  The things that BizTalk enabled you to discover.... :-)

I had not added an assembly to the gac and so could not see the
FactRetriever.  That is now visible in the CallRules shape as is the
variable.  Have created a fact based on class property.

Now use fact to set property.

Onwards.  We may yet see some results.

--
PeterW


"PeterW" wrote:

> 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 deploy
ed.
>  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 t
o
> 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 val
ue
> 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 fo
r
> 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 docum
ent
> 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 us
e
> 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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:32 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register