How to pass an argument from one operation to another in Workflow 4

I created an Activity (CodeActivity) that restores the temperature in which I live.
I do not want to add this activity to the workflow and associate it with an if / activity statement, which can be based on my temperature outsider, to do different things.
But I can not find how to access outargument from my temperature activity.

This is my first Windows Workflow 4 project, so maybe I'm attacking it wrong. I have:

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

But how do I access it? I found tutorials on how to get data when starting an operation (only one), but not as part of the workflow.
I hope my question will make sense.

+4
source share
1 answer

Add a variable to the stream and bind OutArgument from your CodeActivity to the variable. Then you can use the variable in the If action.

+4
source

Source: https://habr.com/ru/post/1308566/


All Articles