Example: Reading and Writing Variables

Variables hold temporary values that can be passed between activities. You can create and access variables using the Write Variable and Read Variables action types

Variable Properties

Variables can have the following properties:

Property

Description

Name

Specifies the name of the item, which should be clear and meaningful, and should convey the item's purpose to non-technical users.

Code

Specifies the technical name of the object, which is used for generating code or scripts.

Comment

Descriptive comment for the object.

Stereotype

Extends the semantics of the object beyond the core UML definition.

Data type

Specifies the data type of the variable. You can choose a standard data type or specify a classifier. You can use the tools to the right of the list to create a classifier, browse the available classifiers or view the properties of the currently selected classifier.

Multiplicity

Specifies the number of instances of the variable. If the multiplicity is a range of values, it means that the number of variables can vary at run time.

You can choose between:


  • * – none to unlimited

  • 0..* – zero to unlimited

  • 0..1 – zero or one

  • 1..* – one to unlimited

  • 1..1 – exactly one


Created October 7, 2009. Send feedback on this help topic to Sybase Technical Publications: pubs@sybase.com