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,

MEC: How to Set Message Counter for EDI Message

When you sending/creating EDI messages it is necessary to include unique message interchange number. This is to ensure each message that we ...