There are two ways of creating variables for your business process. Variables can be created in the Data Palette by selecting Add —> Variable or they can be created in the node builder when you are configuring the Send Data or Receive Data section of a Client Request, Client Request with Return (Start Node only), Client Response, Subscription (Start Node only), Control Send, Control Send with Return, or Control Receive node for your business process nodes. Whichever method you choose, you can always access your variables from the Data Palette after they are created. When you select a variable in the list on the Data Palette, its properties are displayed in the Property Editor.
Before you can create an XML variable of a particular XML Schema type, you must first import the XSD file that contains the XML Schema into the WebLogic Integration schemas project. For instructions on importing an XSD files, see Importing Files into the Schemas Project.
Before you can create a non-XML variable of a particular non-XML type, you must first import the MFL file that contains the schema for the non-XML type into the WebLogic Integration schemas project. For instructions on importing an MFL files, see Importing Files into the Schemas Project.
Before you can create a variable of a Java class type, the Java class file must first be available in the WebLogic Workshop project. To learn more about including a Java class in your project, see Using Existing Applications.
To Create a New Variable in the Data Palette
You can create variables using the Add menu on the Variables tab. To learn how to create variables in the node builder, see To Create a New Variable in the Node Builder.
The Data Palette, which contains a Variables and a Controls tab, is displayed in the Design View.
A description of the possible variable types options are as follows:
Lists the XML Schemas that are available in your business process project and the untyped XMLObject and XMLObjectList data types.
Lists the Message Format Language (MFL) files available in your business process project and the untyped RawData data type. WebLogic Integration uses a metadata language called Message Format Language (MFL), based on XML, to describe the structure of non-XML data. Every MFL file available in your project is listed in Non-XML Types. Note that an XML Schema representation of each MFL file is built by WebLogic Workshop and is also available in the XML Types listing.
Lists Java primitive data types.
Variables can be created from the Java classes in the current project but the list of available Java classes are not however, listed in the Select Variable pane. To create variables from Java classes, you must explicitly specify the Java class in the Variable type field as described below.
For more detailed descriptions of the data types, see Working with Data Types.
The Create Variable dialog box is displayed with the selected variable type.
The Variable type field is populated with the variable type you selected.
Note: If you select the Declare as constant and leave the Default value field blank, the run time default value used is:
-non-primitive: null
-numbers: 0
-boolean: false
-char: '\0'
The Variables tab in the Data Palette is populated with the variable you created; the name and type of the variable is displayed. When you select a variable in the list, the variable properties are displayed in the Property Editor.
To Create a New Variable in the Node Builder
You can create variables directly in the node builder while you are configuring a node's Receive or Send Data tab. To learn how to create variables outside of the node builder, see To Create a New Variable in the Data Palette.
Note: The other fields in the dialog box are already populated with the variable types expected by the method you specified on the General Settings tab.
Lists the XML Schemas that are available in your business process project and the untyped XMLObject and XMLObjectList data types.
Lists the Message Format Language (MFL) files available in your business process project and the untyped RawData data type. WebLogic Integration uses a metadata language called Message Format Language (MFL), based on XML, to describe the structure of non-XML data. Every MFL file available in your project is listed in Non-XML Types. Note that an XML Schema representation of each MFL file is built by WebLogic Workshop and is also available in the XML Types listing.
Lists Java primitive data types.
For more detailed descriptions of the data types, see Working with Data Types.
The Select Variable Type field is populated with the variable type you selected.
The Variable type field is populated with the variable type you selected.
Note: If you select the Declare as constant and leave the Default value field blank, the run time default value used is:
-non-primitive: null
-numbers: 0
-boolean: false
-char: '\0'
The new variable you created is displayed in the Select variables to assign: drop-down menu in the node builder and is added to the Variables tab in the Data Palette; the name and type of the variable is displayed. When you select a variable in the list, the variable properties are displayed in the Property Editor.
To Convert Application Variable Data Types
The node builders support assigning typed data to untyped process variables, and untyped data to typed process variables in the following ways:
Assigning MFL Data to XML Variables and XML Data to MFL Variables
![]() |
![]() |