OS4X plugin os4xplugin engdatv2 encode

From OS4X
Revision as of 08:34, 29 July 2024 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Purpose

Creation of an ENGDAT v2 abstract file based on the parameters of the job. The abstract file is added to the order. The existing files are renamed according to the ENGDAT standard (only the virtual file name). The ENGDAT abstract file receives the attribute "type=ENGDAT" in the XML file. The file is saved in temp. OS4X directory and receives the name prefix "os4x.engdat.".

The following ENGDAT fields are implemented:

  • UNB
  • UNH
  • MID
  • SDE
  • RDE
  • FTX
  • EFC
  • TOT
  • UNT
  • UNZ

Requirements

  • File /etc/os4x.conf or configuration file referenced by environment variable $OS4X_CFGFILE. The temporary directory and the license file are obtained via the database that is configured here.

Konfiguration

-

Return codes

  • 0: everything OK
  • 1: Number of parameters != 1; Config file /etc/os4x.conf not found; Config in database not readable; License not valid; XML file invalid; Number of files equals 0; more than 999 files in the order
  • 2: database side configuration of OS4X not readable; XML document not OS4X compliant