jonypony3
jonypony3

Reputation: 410

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

Upvotes: 2

Views: 1799

Answers (2)

Marc Canals Giraut
Marc Canals Giraut

Reputation: 354

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

sample

Upvotes: 2

HM Chan
HM Chan

Reputation: 192

Add a bool variable, say bValid in Sequence Activity. In the properties dialog of ValidateXml, assign Result to the bValid. bValid will contain the return value of ValidateXml activity.

Upvotes: 1

Related Questions