BizTalk Server General - Using .NET Assembly in Rules Engine

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > November 2004 > Using .NET Assembly in Rules Engine





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Using .NET Assembly in Rules Engine
Jimmie

2004-11-06, 5:48 pm

I created a .NET Assembly/method to provide a fact value in a rule predicate.
The method works correctly when tested in Visual Studio using a console
application to call the method.

In the Business Rules Composer, the rule / condition that uses the .NET
Assembly in a predicate is not being evaluated; even though it appears the
fact is asserted / retracted when I test the policy. (No errors are reported
when I save / publish / test the policy and corresponding vocabulary.)

Is there any trick to using a .NET Assembly in a predicate? I cannot find
any samples, and the documentation is rather sparse.

Thanks!
PBR

2004-11-10, 2:47 am

Jimmie,

You have to make an object that implements IFactCreator in order to
instantiate an instance of your object in the Rules Composer.

-- PBR

"Jimmie" <Jimmie@discussions.microsoft.com> wrote in message
news:945D1B03-A9D1-4DF2-9BF7-328EE4DB1334@microsoft.com...
> I created a .NET Assembly/method to provide a fact value in a rule

predicate.
> The method works correctly when tested in Visual Studio using a console
> application to call the method.
>
> In the Business Rules Composer, the rule / condition that uses the .NET
> Assembly in a predicate is not being evaluated; even though it appears the
> fact is asserted / retracted when I test the policy. (No errors are

reported
> when I save / publish / test the policy and corresponding vocabulary.)
>
> Is there any trick to using a .NET Assembly in a predicate? I cannot find
> any samples, and the documentation is rather sparse.
>
> Thanks!



Jimmie

2004-11-10, 2:47 am

Thanks! That was the missing piece of information I needed. It now works as
expected.

Jimmie

"PBR" wrote:

> Jimmie,
>
> You have to make an object that implements IFactCreator in order to
> instantiate an instance of your object in the Rules Composer.
>
> -- PBR
>
> "Jimmie" <Jimmie@discussions.microsoft.com> wrote in message
> news:945D1B03-A9D1-4DF2-9BF7-328EE4DB1334@microsoft.com...
> predicate.
> reported
>
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com