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.
精彩评论