BizTalk 2006 :: Unexpected behavior in rules engine

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi All, I a re-posting this in hopes of some help....

I have a strange rules engine behavior I need help with, please bear with
me...

In my policy, I assert the following as the first rule (assert new
Validate()):

public class Validate
{
public Validate()
{
Debug.WriteLine("Validate ASSERTED");
}

Then I call a static method in one of the rules:

public static string ValidateMessage(params...)

When I call this method the FIRST TIME, everything is fine, the method is
executed 2 times for the 2 lines, and the DebugView outputs the following...

Validate ASSERTED
Validate :: ValidateMessage STARTED
Validate :: looping thru lines
Validate :: looping thru lines
Validate :: ValidateMessage STARTED
Validate :: looping thru lines
Validate :: looping thru lines


Then it gets strange.... when I execute it a second time, I get:

Validate :: ValidateMessage STARTED
Validate :: looping thru lines
Validate :: looping thru lines
Validate :: ValidateMessage STARTED
Validate :: looping thru lines
Validate :: looping thru lines
Validate ASSERTED
Validate :: ValidateMessage STARTED
Validate :: looping thru lines
Validate :: looping thru lines
Validate :: ValidateMessage STARTED
Validate :: looping thru lines
Validate :: looping thru lines

A third time I get:

Validate :: ValidateMessage STARTED
Validate :: looping thru lines
Validate :: looping thru lines
Validate :: ValidateMessage STARTED
Validate :: looping thru lines
Validate :: looping thru lines
Validate :: ValidateMessage STARTED
Validate :: looping thru lines
Validate :: looping thru lines
Validate :: ValidateMessage STARTED
Validate :: looping thru lines
Validate :: looping thru lines
Validate ASSERTED
Validate :: ValidateMessage STARTED
Validate :: looping thru lines
Validate :: looping thru lines
Validate :: ValidateMessage STARTED
Validate :: looping thru lines
Validate :: looping thru lines

And so on... It keeps piggy-backing these past method calls and I don't know
why!

If I restart the host, the first call goes back to normal and then this
problem begins again.

If anyone has seen this or knows what I am doing wrong, please help.

Thanks,

BA



.



Relevant Pages

  • Re: Bizarre C# behavior
    ... Validate:: ValidateMessage STARTED ... Validate:: looping thru lines ... public static string VerifyPOLineUnique(TypedXmlDocument rootNode, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Bizarre C# behavior
    ... In my BizTalk process I call a static method: ... Validate:: ValidateMessage STARTED ... Validate:: looping thru lines ... when I execute it a second time, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: BizTalk 2006 :: Unexpected behavior in rules engine
    ... I test the policy fine from the composer, ... I assert the following as the first rule (assert new ... public class Validate ... Validate:: looping thru lines ...
    (microsoft.public.biztalk.general)
  • Re: BizTalk 2006 :: Unexpected behavior in rules engine
    ... Are you invoking the policy from the Orchestrations or C#, ... I assert the following as the first rule (assert new ... public class Validate ... Validate:: looping thru lines ...
    (microsoft.public.biztalk.general)
  • BizTalk 2006 :: Strange behavior in rules engine
    ... I assert the following as the first rule (assert new ... public class Validate ... Validate:: looping thru lines ... when I execute it a second time, ...
    (microsoft.public.biztalk.general)