Paul Mehner

blog

  Home  |   Contact  |   Syndication    |   Login
  37 Posts | 0 Stories | 22 Comments | 19 Trackbacks

News

Archives

Post Categories

Old Blog

The Business Rules Engine of Windows Workflow Foundation does not appear to update value type fields that are part of a structure. When the THEN action of a rule is executed and a calculation updates a value type in a struct, the value of the structure member remains zero. Turning on tracing of the execution of individual business rules shows successful execution of the assignments, but the targeted field maintains its initial value of zero during its use in subsequent calculations. No exceptions are thrown and tipping the BRE via the "update()" command has no impact on this behavior. In my case, changing the struct to a class cured the BRE of this ailment.

 

 

posted on Monday, January 29, 2007 7:22 AM

Feedback

# re: Windows Workflow Foundation BRE Does Not Update Value Type Fields of a Structure 1/30/2007 1:25 AM More On WF Forums
http://forums.microsoft.com/MSDN/showpost.aspx?postid=1165963&siteid=1

# re: Windows Workflow Foundation BRE Does Not Update Value Type Fields of a Structure 8/30/2007 1:36 AM Ollie Riches
Wouldn't that be because struct are immutable?

Post Feedback

Title:
Name:
Email: (never displayed)
Url:
Comments: 
Please add 2 and 8 and type the answer here: