You can add message type variables to your process automatically when you create a receive, pick, invoke, event handler, or reply activity from a WSDL. For details, see
Creating an Activity by Starting with a WSDL Interface.
You can also add variables to your process manually. Before manually adding a variable, ensure that an appropriate WSDL namespace is defined. For more information, see
Importing WSDL, Schema, and Other Resources
.
You can declare global variables, accessible by the process as a whole, and you can declare local variables for use within a scope. A local variable can have the same name as a global variable, and if it has the same name, only the local variable is accessible within the scope.
To define a global variable:
In Outline view, right mouse click on Variables and select
Add > Declaration > Variable
.
Double-click the new variable, or in the Properties view, click
Dialog (...)
to open the
Definition
dialog.
In the dialog, select the variable type:
WSDL message
Schema type
Schema element
Select the name you need from the list that appears, and click
OK
.
To add an initial value to a variable, see
Initializing a Variable
.
To define a local variable:
Select a Scope from Outline view.
Complete Steps 2 - 4 above.
Variables are listed in the order they are created. To re-order the list, move a variable up or down in the Outline view.