Changing the refresh period for the Business Rules Engine

By default the MS BRE only refreshes rules sets and vocabularies every 60 seconds. This is fine for production environments but more than a little annoying for the typical  update/deploy/test cycle of rules development.

In particular you can come a cropper of this limit when writing unit tests that rely on rule policies. Typically in a unit test you’ll want to deploy a particular rule policy and then test against it, but with automated tests you’ll find you hit messages like ‘RuleSet not Deployed’ as the engine will not pick up the new policy quickly enough.

Thanks to my colleague Dan for pointing out the following changes. Firstly this period can be specified in the BTSNTSvc.exe.config configuration file for BizTalk. Add the following two sections:

section name=Microsoft.RuleEngine type=System.Configuration.SingleTagSectionHandler />

<Microsoft.RuleEngine PollingInterval=5/> 

However that isn’t enough, as this only changes the refresh period for rule policies executed by the BizTalk engine. To change the period for the rules editor, you also need to change the following registry key:


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: