|
Home > Archive > BizTalk Server General > May 2005 > Business Rules help - custom .Net method
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 |
Business Rules help - custom .Net method
|
|
| McGeeky 2005-05-24, 6:01 pm |
| I have written a static method, built the assembly, deployed it in to the
GAC, then called it from my rules (defined using the Business Rules
Composer). But for some reason the method just isn't being called. I have
put trace in there to double check.
When I go to test my policy, for some reason the BRC is asking for a fact
creator for the class that has the static method. Why would it need a fact
creator for a static method? Can't I just simply call a static method from
within a rule?
--
McGeeky
http://mcgeeky.blogspot.com
| |
| Matt Milner 2005-05-25, 2:47 am |
| The simple answer is "nope". Even for static methods, you have to assert a
fact of that type into the engine either with a) fact creator, b) fact
retriever, c) passed as a parameter, or d) using the assert function in the
action step of a rule.
Matt
"McGeeky" <anon@anon.com> wrote in message
news:e7EWjUHYFHA.3132@TK2MSFTNGP09.phx.gbl...
>I have written a static method, built the assembly, deployed it in to the
>GAC, then called it from my rules (defined using the Business Rules
>Composer). But for some reason the method just isn't being called. I have
>put trace in there to double check.
>
> When I go to test my policy, for some reason the BRC is asking for a fact
> creator for the class that has the static method. Why would it need a fact
> creator for a static method? Can't I just simply call a static method from
> within a rule?
>
> --
> McGeeky
> http://mcgeeky.blogspot.com
>
>
>
| |
| McGeeky 2005-05-25, 7:48 am |
| Thanks for the clarification on that Matt. No wonder my rule wasn't working!
--
McGeeky
http://mcgeeky.blogspot.com
"Matt Milner" <matt.milner@m3technologypartners dot com> wrote in message
news:%23IhySJOYFHA.1404@TK2MSFTNGP09.phx.gbl...
> The simple answer is "nope". Even for static methods, you have to assert
> a fact of that type into the engine either with a) fact creator, b) fact
> retriever, c) passed as a parameter, or d) using the assert function in
> the action step of a rule.
>
> Matt
>
>
> "McGeeky" <anon@anon.com> wrote in message
> news:e7EWjUHYFHA.3132@TK2MSFTNGP09.phx.gbl...
>
>
|
|
|
|
|