index > Windows Workflow Foundation > Bug in RuleSet Editor/Parser

Bug in RuleSet Editor/Parser

When building a RuleSet from within Visual Studio I'm getting an error when trying to call a method on my Workflow. I'm validating an incoming message, and need to call a method which adds additional information to the incoming message and validates various business rules. When I add a rule action which looks like:

this.AddBrokenRule(this.Request.Employee, "First Name is Required", "FirstName")

I get the following error from the rule designer:

Error Parsing the Action(s): Object reference not set to an instance of an object.

The error arises when there are overloaded versions of the associated function available. When I start building the statement, the Intellisense properly identifies the 3 overloads of the function, but it seems unable to use any of the overloads. If I rename the functions such that each has a unique name, it seems to work properly.

Thanks!

TheJet

Overloaded functions do not work as expected in the ruleset editor. This is a known issue.

- Thanks




Vihang Dalal | Software Development Engineer in Test | Windows Workflow Foundation
_vihang

Can you let me know which version of Windows Workflow Foundation you are using.

I tried overloaded functions on Beta2 & Beta2.2 and it seems to workfine.

Can you share your code with me?

Thanks,

Chethan

Chethan

I am currently using Beta 2 [Jan CTP], I'm trying to put together an example which exposes the bug, but my simple examples that I've put together seem to work fine...  I'm trying to isolate what is different about the sample project vs. where I am actually seeing the bug.  If I manage to isolate the problem, I'll post reproduction steps here.

 EDIT:

And now I'm especially puzzled, because after re-opening the problem project and changing things back to how they were when the error was showing up... everything is working just fine.  If I see the issue again, I'll try to poke at it a little more thoroughly to see what causes the error to stop showing up.

 

TheJet
reply 4

You can use google to search for other answers

 

More Articles

• Workflows for Express
• Customising WorkflowActivity properties
• Timers Persistence with Default and Manual WorkflowSchedulerServi...
• Hosting the workflow designer outside of VS.
• Feedback/Suggestions Db Schema for Providers Objects
• Workflows and returning data
• About WorkflowCompiler
• Basic questions: Save state, users control, hold task...
• Updating Workflow
• Moving unstructured pieces of "work" in a workflow.
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Why did not call SaveCompletedContextAct
• performance suddenly slowed!
• HandleExternalActivity not subscribing t
• EventSink Roles terminates workflow
• How to connect Biztalk server and Window
• Cannot Pass Parameters Into Workflow
• Creating user interface elements (especi
• Workflow Monitor from asp.net
• Inheriting from StateMachineWorkflowActi
• Synchronization of Workflow instances?
• add custom activity to workflowdesignerc
• Heck of a time...
• Windows workflow foundation beta 2. (bui
• Beta2_2 set_up needed
• Spanning a Transaction Across Workflows

Hot Articles

• customError in webconfig file
• Queues
• workflow embedding
• Setting up the database for SqlWorkflowP
• How to debug with RunWorkflow method?
• Where to create workflow runtime
• SQL Database Setup and Persistence Service
• Adding TransactionScope to host applicat
• Rule reference Activity properties in XO
• possible bug in Workflow designer?
• Hands On Labs for the Vista 5472 build?
• Help!! Custome Activity at StateMachineW
• Hosting Workflow Runtime
• Heavy action and thread blocking
• Problem with SqlWorkflowPersistenceServi

Recommend Articles

• Binding an property of activity to a pro
• how to change the text shown when draggi
• Exceptions While Creating the View
• Reinitializing a correlation token
• WorkflowRuntime.GetWorkflows() does not
• Loading a workflow from xoml file
• Multi-Modal activities and workflows
• Custom Activity Causes Workflow Validati
• Migrating to WWF Beta2
• VS2005 RTM and WWF Beta1
• Problem with Rules and comparisons on nu
• Reusing workflows in a State machine
• how to implement human workflow using St
• ExternalDataExchangeService API usage is
• SqlWorkflowPersistenceService requires s