I'm creating a FlowChart within a Windows Workflow 4.0 project in Visual Studio 2010. I've added a FlowSwitch
with an expression of a variable passed in as an In Argument
to the Activity
. I can debug and see the values are passed in correctly, however my FlowSwitch is not switching at all to a case that is defined as the value being passed in. I've defined the FlowSwitch going to the Activity as the numeric value that the In Argument
should be equal to. Is there something I'm missing?
R – Windows Workflow 4.0 FlowSwitch not working
visual studiovisual studio 2010workflow-foundationworkflow-foundation-4
Related Topic
- C# – “Cannot evaluate expression because the code of the current method is optimized” in Visual Studio 2010
- .net – How to fix the Visual Studio compile error, “mismatch between processor architecture”
- Asp.net-mvc – Visual Studio debugging/loading very slow
- Sql-server – Cannot Connect to Server – A network-related or instance-specific error
Best Answer
A FlowSwitch works with string values at the moment. Try converting the InArgument to a string.
Example XAML: