Re: BTS 2004 Rule Engine - .NET class create instance
From: Makarand Keer (MakarandKeer_at_discussions.microsoft.com)
Date: Tue, 9 Nov 2021 07:00:04 -0800
I have similar requirement.
I am using SDK to invoke RuleEngine.Execute method to apply the rules on
Now when for record where Business Rule is applied i am updating DateTime
element of same xml. To get the current datetime I have written class and
added the assembly in GAC. From Rule Composer while designing Policy I can
assign the static method of this class to my element in Action, however when
I test the policy thr' coposer it is not working also when I run my code to
invoke RuleEngine.Execute it is not working. No errors are shown.
Am i missing something here, do I have to add class as fact in sdk, if yes
my class have private cinstructor so how to add instance of this class in
"Matt Milner" wrote:
> you don't need a fact creator in the orchestration, you need to create the
> facts and add them as parameters. for example, if you have a component
> named MyComponent, you wouldn't add a fact creator to the orchestration,
> just a variable of type MyComponent. Initialize it before using it as a
> parameter to the call rules shape. The IFactCreator interface is for
> testing your policies in the business rules composer.
> "inukshuk" <firstname.lastname@example.org> wrote in message
> > I have a call rules shape in my orchestration and have created an instance
> > this class which implements the IFactCreator interface.
> > I then get my object in the dropdown list when i configure my call rules
> > shape and select it as a paramter.
> > When i run my orchestration and I get to the call rules shape i always get
> > an exception of type:: Object reference not set to an instance of an
> > These rules work like a charm from the test policy option when i create
> > object in the fact creator section. But from my orchestration i get the
> > object reference exception.
> > Can anyone help.....
- Re: Business Rules Composer processing vs Orchestration Processing
... When using the orchestration, I'm using ... the call business rule component
within a scope component to invoke the ... nothing but invoke the rule. ... >>
xpath structure, but I cannot find a way to correct this for the ... (microsoft.public.biztalk.server)
- Re: BTS 2004 Rule Engine - .NET class create instance
... you don't need a fact creator in the orchestration, ... parameter to
the call rules shape. ... > this class which implements the IFactCreator interface.
- Re: Rules Engine - .Net class based fact instantiation
... policies to their hearts content without requiring changes to the ... > In
your orchestration, create a variable of the ... In the Call Rules shape, ...
> prior to calling the rule and passed in. ... (microsoft.public.biztalk.general)
- BTS 2004 Rule Engine - .NET class create instance
... When i run my orchestration and I get to the call rules shape i always get ...
an exception of type:: Object reference not set to an instance of an object. ... object
reference exception. ... (microsoft.public.biztalk.general)
- Re: Modifing Message in Rules
... When you add the Call Rules shape to the orchestration... ... > Cant
I construct a message, as in first question, and pass it to the rules ... engine.