Sdílet prostřednictvím


Weird bug

I was looking into a question on the WF forums and trying out something. So I defined a WF Sequential WF project, added some properties on my root workflow class, added a policy activity, defined some rules against those properties - all standard stuff. Things worked great. Now, I defined another class with in Workflow1.cs file and I wanted to define a property of that type in my WF and add more rules operating on that field. On compiling the project again, the Policy activity could not find the RuleSet in the .rules file. Baffled, I asked John Rumell if he knew what was going on. He is one of the Rules developers on my team, and only one of the handful people around in this quiet holiday period. He asked me to move this class at the end of the file and make sure my Workflow class is the first one in the file. And guess what, it worked. It is a weird bug where the fix did not make it to the RTM bits and was postponed because it had such a simple workaround. Thought I'd just quickly post about this in case you've seen this issue.