[Simple introduction to WF] -- Use of activity parameters and variables
Source: Internet
Author: User
Code:
Overview
Data is transmitted through the use of variables.
Variables and parameters used in the activity
[In parameter]. The value of the correlated variable can be passed In. When the parameter is modified internally, the correlated variable is not changed.
[Out parameter] The correlated variable value cannot be passed in. When an internal parameter is modified, the associated variable is updated.
The value of the [In/Out parameter] correlated variable can be passed In. When the internal parameter is modified, the associated variable is updated.
The preceding parameters can be modified using the [RequiredArgument] feature.
Variable outside the activity
Scenario: Activity A is nested with activity B. Variables In activity A can interact with each other through the [In parameter] of Activity B and output through the [Out parameter] of Activity B.
This Variable in activity A can be regarded as A global Variable. It must inherit the class System. Activities. Variable <T>.
References:
Instance: WF_WCF_Samples \ WF \ Basic \ CustomActivities \ Code-Bodied \ HelloWorld
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service