Shared Properties
You use this function to create global variables for a project, which can be modified in a deployed project with read-only contents.
These properties are available to all transactions in the project and are available in the Link Editor
.
On the Meta-Inf
tab page in the SAP MII Workbench
, you can open a project folder to see the SharedProperties.mem
file. When you open the SharedProperties.mem
file, the fields
available are based on the Storage Type
, Cache
, and Read-Only
values. Some of these fields are described in the following table:
Field Name |
Description |
|
Name of the shared memory property |
|
Text field for the description of the property |
|
The fully qualified name of the property including folder information for the current project. The property is only visible for linking within the scope of the given namespace. |
|
Amount of time in minutes in which a cached property exists in active memory. Only applies to cached variables. |
|
If this checkbox is selected, the property cannot be changed. The returned value is always the default value. |
|
One of the following types of storage used by the property:
|
|
Data type of the property |
|
Date and time the property was created |
|
User who created the property |
|
Date and time the property was last edited |
|
User who last edited the property |
|
If this checkbox is selected, only transactions in the same folder can access this property. |
|
If this checkbox is selected, the property is stored in memory for a specified amount of time since it was last accessed. |
|
Value of the property the first time it is read if no previous value had been set. This value is required for read-only properties. |
If a property has a default value, it always returns a value. Persistent and inline properties work the same related to default values; however, persistent property values are stored in the database. If the property is not in memory when it is read, the system creates a new instance and the value is set to the default value. These properties can be used and then removed by the user. If the property has a default value, removing the property is similar to doing a restore to the default value. A read-only property acts like a constant, so it must have an initial value. Therefore, a default value is required.
Property names and types cannot be changed since changes could affect a transaction that uses the property without the transaction user's knowledge. If you want to rename a property or change its type, you must delete the property and re-create it. If a transaction uses the property you deleted, the system displays a warning that states the transaction may not execute.
You can also create dynamic properties. They should be marked with brackets {} so the Link E ditor
can perform the link and the Expression Edit or
can parse a property name such as Inline.Project.
Var-{
Transaction.Property}
.
To save a property, click the Save
button on the toolbar of the SAP MII Workbench
.
You can modify these property values from the SAP MII administration menu by choosing .
For more information, see Shared Memory.