Windows > Software Development for Windows Client Forums > Windows Workflow Foundation > Windows Workflow Foundation BRE Does Not Update Value Type Fields of a Structure
Ask a questionAsk a question
 

AnswerWindows Workflow Foundation BRE Does Not Update Value Type Fields of a Structure

  • Monday, January 29, 2007 8:26 AMPaul Mehner Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    The BRE of WF 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.

Answers

  • Monday, January 29, 2007 11:28 PMKavita Kamani - MSFTMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Sorry you ran into this. We are aware of this issue and will be fixing it in the next release. Unfortunately, there is no workaround at this time other than what you already did.

    Thanks

    Kavita

All Replies