Rules In WF4

March 17, 2010

My blog stats show trending topics around searches for “wf4 rule engine” and “wf rule engine” and “wf rules” among other variations. If those topics are leading people to this blog, then I might as well address the topic directly.

What Is WF?
For those who don’t know what the queries above mean – it means that people are searching for the rule engine feature (named Windows Workflow Foundation Rules Engine aka “WF Rules”) in Microsoft’s Windows Workflow Foundation (aka WF). The feature originally shipped with .NET 3.0, and I have written previously about the feature set especially as it compares to Microsoft’s other rules offering.

Changes To WF
With .NET 4.0, the Workflow Foundation is introducing a new workflow model (more details here) – so we now talk about the workflow model in .NET 3.0/3.5 as “WF3” and the new workflow model in .NET 4.0 as “WF4”. However, as mentioned at that link, all of WF3 is still available in .NET 4.0. (Note: the assemblies ship in the ‘Extended’ .NET 4.0 install and not the ‘Client’ .NET 4.0 install.)

Rules Integrated With WF4
WF4 does not include a new forward chaining rules engine that is closely integrated with the WF4 activity model (that does not preclude one being made available in the future). Again, to be very clear, the existing WF Rules features are still available in .NET 4.0 and may be used within WF4. Put another way, there is still a forward chaining rules engine in .NET – it has not gone away. A direct statement from Microsoft on the topic can be seen on the .NET Endpoint blog as follows:

“Two other major WF 4 activities that were discussed at PDC, a new state machine activity and a new forward chaining ruleset activity, will not be available with the VS2010 beta 1 release – and we will cover each of these topics in greater depth in the next month. At this point, a new forward chaining rules engine won’t be ready for the .NET 4 timeframe, and will probably see a CTP release post-VS2010 to gather feedback and to allow customers the opportunity to evaluate the direction we are considering. It’s important to note that we are working to ensure integration with the WF 3 rules engine will be possible in a number of ways, though; one example of integration back to the WF 3 rules engine is the SDK sample activity I mentioned above.”

WF3 -> WF4 Migration
There is also now some rules-specific migration guidance published here as part of some overall WF3->WF4 migration guidance. See also the WF Migration Kit CTP 1 that I posted about previously. Questions about using the WF3 rules with WF4 should most likely be addressed via the forums.

Tell Microsoft What Rules Features You Would Like To See For .NET
Finally, if you have interest in rules on the .NET platform and are willing to provide feedback to Microsoft – I encourage you to do so. In fact, it would be great if you could be as concrete as possible about your feature needs. The inclusion of a feature often depends on customer feedback. Here are some examples of feedback that you could provide to Microsoft:


  • If using the existing WF Rules feature with WF4 via the Interop activity satisfies your technical needs and why or why not.

  • If you would like to see WF Rules more fully integrated with the WF4 programming model, or not.

  • If you use or would like to use rules in applications apart from WF.

  • Specific feature feedback about WF and/or MS BRE.

  • If your needs skew more towards the runtime rule engine or BRMS tools.

Specific feature requests for the future should be provided through Connect (detailed instructions for providing feedback about WF4 through Connect).
Also, if you are interested in discussing your rules scenarios and requirements in more detail with someone from Microsoft, you can contact me via the contact form on this blog, or email me at my firstname.lastname at my employer’s domain.com.


Using A Rule Engine For Hacking

March 17, 2010

I was interested to stumble upon an issue of the hacker zine Phrack dating back to 2000 which includes a tutorial on building a vulnerability scanning system used for hacking…that includes a rule engine. The article mentions a number of things you would expect: Rete, OPS5, CLIPS, Charles Forgy, Daniel Miranker and even the monkey and bananas problem.


The Future Of Gaming

March 17, 2010

Here’s the video for an interesting speech by Jesse Schell entitled “Design Outside The Box.”

Topics of the speech include:

  • the psychology of games – making them sticky
  • the consumer desire for realism and authenticity as a recent trend
  • technological convergence/divergence of devices, the iPhone, the iPad, and the “pocket exception”
  • the possibility of game achievements improving behavior
  • the fact that there are more FarmVille players on FaceBook than there are Twitter accounts

Achievements are already leaking over to non-games, some items that could have been mentioned:
Read the rest of this entry »


Digital Books and the iPad

March 16, 2010

A nice illustrated piece by Craig Mod entitled “Books in the age of the iPad”.

I can’t find the link right now, but Craig’s piece reminds me of some speculation that collector’s edition books could eventually become the only books worth actually printing, and that publishers who want to sell physical books should innovate along those lines.


Revisiting Doom

March 16, 2010

A neat article by J.P. LeBreton looking back at the design and play style of the original Doom. As J.P. says:

Doom feels more like 1st person Robotron than a modern FPS


China’s “Human-Flesh Search”

March 16, 2010

Interesting piece in the New York Times on a phenomenon in China known as “human-flesh search” where Internet users work together to humiliate or otherwise punish people. As the Times says:

It’s crowd-sourced detective work, pursued online — with offline results.


Realtime Datamining Of Location Data

March 16, 2010

All the recent coverage of PleaseRobMe.com has focused on one particular idea of what can be done with realtime datamining of location data. (And how long until we see mashups combining PleaseRobMe.com with social cataloging sites such as LibraryThing?)

Where My Ladies At? (link goes to John Bollozos’ descriptive writeup) is another such site – it mines data from apps such as FourSquare and Gowalla and compares it against a database of female names in order to identify places where lots of females are at a given moment. I’m really at a loss to say more about it.

See also Jim Bumgardner’s “Mayor Of The North Pole” for a perspective on forging location data.

[Tip o’ the hat to Dan G for the Where My Ladies At? pointer.]


Another Profile Of Demand Media

March 16, 2010

Five months after the Wired article, Time Magazine has a recent profile of Demand Media.

The article is short and doesn’t have much additional data compared to the Wired article. However, the author submitted approximately 20 articles to Demand, and did some experimenting such as including factual errors to see if they would be caught.


WF Migration Kit CTP 1 Released

March 8, 2010

The first Community Technology Preview (CTP) for the WF Migration Kit has been released, for migrating to the upcoming new Windows Workflow Foundation.

Consider trying the tool if you are a WF3 user who is looking to migrate your workflows to WF4. Migrators are included for a number of the WF3 out-of-the-box activities. There is also an extensibility point that allows the authoring of custom migrators for handling custom activities.

There is a full announcement on the .NET Endpoint blog.

There is also further WF3 to WF4 migration guidance here.

[I will also point out that since this release is through CodePlex the source code is available as well.]


Datamining Facebook

February 9, 2010

Just a quick post of two links about datamining Facebook:

Pete’s divisions of the US are interesting to consider.

(I haven’t read all the commentary yet, but it’s clear that Mr. Warden is needing some pop culture data to help him understand why Ashley is a popular name in the South and why Twilight is popular in Utah. I think the answers are fairly self-evident.)