Apr 1, 2018

Control Properties in MEC

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.

image


The control properties can be accessed from the MEC mapper using the following code.


String strVariable = getManifestInfo("agr:outputFolderPath");


Hint:

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.


Comparison:


Control PropertiesProperties File
FormatKey,Value formatKey, Value format
DeploymentWill be ported to the environment with import/export function.

Possibility to miss the file to copy unless it is documented properly.

Code

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,

Moving to The Cloud

Infor M3 has taken the approach to move into the cloud by releasing  major version of M3 Cloud Edition (M3 CE) in early 2018. With this rel...