Variable: Start here

What is a Variable?

Where is a Variable?

How you define a Variable

How you use a Variable

Referencing a Variable

Modifying the Initial Value

Setting the Initialization Frequency

What is a Variable?

A Variable is a temporary data store that contains data values that the system can use at various points in the processing of an Input-Event.

You define a Variable to store and pass one or more values between the Transformation- and Enrichment-Rules that Composer uses to process a given Business-Document segment. This value comes from any of these sources:

  • Input-Event
  • External call
  • Table access function
  • Result of a calculation

After you set an initial value for the Variable, Composer reuses or updates this value in subsequent applications of the Rules at the start of any of these intervals:

  • A processing Session
  • The processing of a new Group
  • The processing of a new Input-Event
  • A new Transformation-Phase in the processing of an Input-Event
  • A new Rule in the processing of an Input-Event

Where is a Variable?

Axway module

AccountingIntegrator Enabler

Workbench

Integration-Services: Finance tab

Object dependencies

When you define or import an object, it is stored in the metadata repository and is available for reuse by other objects. Typically, the objects that you define exist in a specific object hierarchy. That is, objects:

  • use objects below them in the hierarchy
  • are used by objects above them in the hierarchy

To help you manage the interlinked network of objects, the software provides the Object Dependencies Browser that displays the object dependencies for a selected object.

This table lists the objects that use and are used by Variables.
 

Variables

Use

Are used by

None

Mapping Rules within:

 

How you define a Variable

Defining a Variable

Create the Variable object from the Dictionary tab.

To define a new Variable object, complete the General tab.

After you define a Variable

After you define a Variable object, use it:

How you use a Variable

You can perform all basic operations on Variable objects, depending on your user rights. [FOR DETAILS: Working with objects: Start here]

The Variable object does not follow the standard object life cycle. You cannot send this object to Production.

Referencing a Variable

As each Variable is stored in a Dictionary and not in an expression itself, expressions only include references to Variables. You define references to Variables via their unique, logical names. Each reference instructs the software to consult the property definitions of the relevant Variable in the appropriate Folder.

To refer to a Variable in an expression:

  1. Display the field where you want to refer to a Variable.
  2. To display the list of available Variables, select DML Object Browser from the Tools menu.
  3. Double click the Variable folder. Composer displays a list of Variable names.
  1. Drag-and-drop the Variable to use to the appropriate field. Composer adds the name of the Variable to the field and prefixes the @ sign to the Variable name, as follows: @Variable_Name.

The Variable is now referenced in an expression. If you did not assign an initial value to the , the default value of the Variable is tab General Variable on thenull.

Modifying the Initial Value

To modify the initial value of a Variable in an expression, enter :=value after the name of the Variable.

Example:  @Variable_Name:=10

Note: If value is a String, you must enclose value in double quotation marks ("value").

Setting the Initialization Frequency

Initializing resets the Variable to its initial value when you reach a new step in the processing, that is, when you start a new Rule, Transformation-Phase, Input-Event, Group or processing session.

It is important that the interval you set in the Init Frequency field is compatible with how you defined the Variable.

For example, a Variable that you use:

  • only to provide information for a Mapping-Template and whose value will change for every input Business-Document, should have a Rule Init Frequency.

  • to indicate that an entire processing session ended without error, should have a Session Init Frequency.

Back to top

Related Links