Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

MC2 EJM, in contrast to classic MC EJM, doesn’t does not use masks for data file names and uses file paths relative to the MC data folder only. Moreover, MC2 EJM allows you to pass data files in memory without writing files to the file system.

To meet the requirements, you must conform to a special format of file/data exchange variable has to be used.variables:

  • t is a string representation of a data file list where the data files are separated by

...

  • commas.

...

  • Each data file, in turn, has 3 parameters separated by a pipe.
  • Data File format: File name|Data variable name|(Archive) File type
  • Currently

...

  • supported archive file types are: zip, tar and tar.gz.

Data File parameters:1)     

  • File name – can be a file path relative to the MC data folder or

...

  • simply a file name

...

  • . Mandatory field.
  • Data variable name – the name of the variable that contains file data

...

  • . Optional field.
  • File type – File content type.

...

  • Optional field.

Examples of Data File :1)     

  • cmw/extracts/enityextract_qwerty1234.zip

...

  •    – the file is read from the file system.

...

  • enityextract_qwerty1234.zip|

...

  • zipcontentVar – the content of the file

...

  • is read from the zipcontentVar variable.

...

  • enityextract_qwerty1234.zip|zipcontentVar|

...

  • ZIP – the zip file

...

  • is read from the zipcontentVar variable and then all the files from the zip

...

  • are extracted and used as data files.

The content of the  file can be a base64 string. To decode the content automatically we should , add to the file name the extension .b64 extension:  E.g. . For example, file1.txt.b64|var1.