简体   繁体   中英

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! 在此处输入图片说明

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.

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

样品

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM