Use static members of .Net Classes in Policies (Business Rule Composer)








To execute a policy that invokes a static member of the .NET class. You can modify this behavior by changing the value of the StaticSupport registry key under HKEY_LOCAL_MACHINESoftwareMicrosoftBusinessRules3.0

In the registry the behavior of .Net Classes using static members (StaticSupport) used by Business Rule Engine is:

0

Default value. The rule engine follows the BizTalk Server 2004 model, where the static method is called only when an instance of the .NET class is asserted.

1

An object instance is not required. The static method is called when the rule is evaluated or executed.

2

An object instance is not required. The static method is called at the policy translation time if all parameters are constant. This is a performance optimization because the static method is called only once even though it is used in multiple rules in conditions. Note that static methods used as actions will not be executed at the translation time, but static methods used as parameters may be executed. 


If you do not see the StaticSupport registry key under HKEY_LOCAL_MACHINESoftwareMicrosoftBusinessRules3.0, you should add it by performing the following steps.

To add the StaticSupport registry key

  1. Click Start; click Run, type RegEdit, and then click OK.

  1. Expand HKEY_LOCAL_MACHINE, expand Software, expand Microsoft, expand BusinessRules, and then select 3.0.

  1. In the right pane, right-click, point to New, and then click DWORD value.

  1. For Name, type StaticSupport.

If the StaticSupport registry key already exists, and you need to change its value, perform the following steps.

To change the value of the StaticSupport registry key

  1. Click Start, click Run, type RegEdit, and then click OK.

  1. Expand HKEY_LOCAL_MACHINE, expand Software, expand Microsoft, expand BusinessRules, and then expand 3.0.

  1. Double-click the StaticSupport registry key, or right-click it and then click Modify. 


#Biztalk2006

0 views0 comments

Recent Posts

See All