I have an InvokeMethod Activity in Windows Workflow Foundation. This workflow is quite simple:
- ask to user for his/her height
- if height is greater than 5.9, then ask his/her profile details
- display profile details
To achieve this, I have created a workflow, seen below:
How can I assign an object which is return from InvokeMethod as variable?
I have posted my code on GitHub.
Here is the solution within Visual Studio properties:
First add a variable to your workflow:
Drop an InvokeMethod Activity into your workflow workspace and edit properties:
Here is the solution in XAMLX