OS4X plugin os4xplugin promata recipient

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


Purpose

Determine the address code of the recipient of an order by returning a script that contains the virt. contains the file name of the job file. The address code, which is determined from the script, is read as the only output on stdout by the plugin and the recipient of the order is searched for in the database. If there are several users who use this address code, the last one entered will be used.

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.
  • The script for determining the address code must be administered by yourself and has the following absolute (hard, unchangeable) path:
$OS4X_SCRIPT_DIR/promata_addressing_recipient.sh
  • The script receives the following parameters:
  1. virt. filename

If several files are included in the order, the script is called individually for each file. The last file of the order defines the call of the address code used.

Configuration

-

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
  • 2: License not valid
  • 3: XML file invalid