IBM Integration Bus, Version 10.0.0.2 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS


Adding a user-defined variable

You can use a user-defined variable to specify a value in your DFDL schema that is used in parsing your message, but varies between messages. Variables are defined as top-level annotations in a schema. A variable holds a value that can be set once, and then accessed from DFDL expressions in property values, asserts, and discriminators.

Before you begin

Create or open a DFDL schema file. See DFDL schema editor for a description of the DFDL schema editor.

Procedure

  1. In the Outline view, right-click Variables, then select Add a Variable Definition.
  2. Type a name and select a data type for your user-defined variable.
  3. Edit the default value of your new variable.
  4. Save your message model.

Results

Your user-defined variable is added to the DFDL schema.

What to do next

Add your user-defined variable to a DFDL schema object. See Setting variables on a schema object.

df20100_.htm | Last updated 2015-09-24 12:54:53