When we want to keep some parameters in the MEC we often use “.properties” file. But alternatively we also can use Control properties in the Partner Administrator.
The control properties can be accessed from the MEC mapper using the following code.
You can add control properties to the individual “Agreement” or to the “Group”.
Depending on the situation, we can choose the suitable method to use. Below comparison will help to choose appropriate method.
|Control Properties||Properties File|
|Format||Key,Value format||Key, Value format|
|Deployment||Will be ported to the environment with import/export function.|
Possibility to miss the file to copy unless it is documented properly.
Very easy. No explicit initiation of objects.
One line required to access the variable.
|Not very easy. Need to read the file and initiate property object. Require few extra coding to access first variable.|
|Usage||Properties to be used in agreement or group level.||
Properties to be used as common to share across all the agreements.
E.g. data base connections,