开发者

How do I pass argument from an activity to another in Workflow 4

开发者 https://www.devze.com 2022-12-29 08:55 出处:网络
I have created an Activity (CodeActivity) that retrieves the temperature where I live. I wan\'t to add that activity to a workflow and connect it to an if statement/activity that can based on my tem开

I have created an Activity (CodeActivity) that retrieves the temperature where I live.

I wan't to add that activity to a workflow and connect it to an if statement/activity that can based on my tem开发者_运维技巧perature outargument do different things.

But I can't seem to find how to access the outargument from my temperature-activity.

This is my first Windows Workflow 4 project so perhaps I'm attacking this in the wrong way.

I have:

public OutArgument<decimal> Degrees { get; set; }  

But how do I access it? I have found tutorials how to get the data when running the activity (only one) but not as part of a workflow.

Hope my question makes sence.


Add à Variable to the worflow and bind the OutArgument from your CodeActivity to the variable. Next you can use the variable in the If activity.

0

精彩评论

暂无评论...
验证码 换一张
取 消