Windows Workflow Foundation and Business Rules - Integration Scenarios
Published by Rajgo October 4th, 2006 in Business Rules, Workflow, Enterprise Architecture, BPM, BRMS, Rule Engine, QuickRules.NET, BRE, Decision TablesOne question that keeps popping up now and often is this.
What are the different Integration Scenarios for a BRMS with WWF?
Let me try and summarize all those that I can think of. Well, this is going to get technical.
A Little Background
A workflow is a set of Activities (or actions or tasks). The Activities can execute in 2 ways
- Sequential, as in specified when the Flow is Designed
- Event Driven, where the actual sequence of execution depends on the (external) events raised at runtime.
A more detailed treatment of Activities can be found here.
Basic Integration Scenarios
- The simplest way is to call the Business Rules Engine from Inside a CodeActivity. Here, you would just call the Rule Engine in an in-process mode. This is just like any other method call.
- If each of your Rulesets are exposed as specific Web Services, then you could use a InvokeWebService Activity, in combination with a WebServiceInputActivity and a WebServiceOutputActivity
- Now, if you want certain Rules to be Applied on an External Event, like say, an Order Created Event, then you could use the HandleExternalEventActivity and a CallExternalMethodActivity.
The above are some of the most basic scenarios. These, in conjunction with other Activities in a Workflow should provide for common integration scenarios.
Related Posts



















Interesting. I posted a couple of times on rules and WWF/Biztalk - check out http://www.edmblog.com/weblog/2005/09/windows_workflo.html and http://www.edmblog.com/weblog/2005/11/biztalk_windows.html. Glad I found your blog.
JT