11-09-04 10:49 PM
Hi Matt
I have similar requirement.
I am using SDK to invoke RuleEngine.Execute method to apply the rules on
XMLDocument.
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
fact.
Please help
Makarand
"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.
>
> Matt
>
>
> "inukshuk" <inukshuk@discussions.microsoft.com> wrote in message
> news:4903174E-EC74-414E-94BF-3798237FE131@microsoft.com...
> of
> object.
> the
>
>
>
[ Post a follow-up to this message ]
|