Search code examples
c#workflow-foundation-4

C# Workflow code activity result


Hello I am very new worklows. I am attempting to build a proof of concept workflow that will process all files in a specified directory. I have added a foreach loop and then a codeactivity (ValidateXml), the code activity validates the xml and returns bool, it inherits the CodeActivity class.

Now i you take a look at the picture, I would like to use the result of the codeactivity in the WriteLine activity.

Please help me in how to do that.

Thank you!enter image description here


Solution

  • It's quite easy what you wanto to do. See in the screenshot below:

    sample