Reputation: 410
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!
Upvotes: 2
Views: 1799
Reputation: 354
It's quite easy what you wanto to do. See in the screenshot below:
Upvotes: 2
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