Aller au contenu principal

Global Template

Global Template

The global template is a reserved system template that contains the Oracle database connection, path definitions, SCP settings, and Ghostscript configuration. It must never be deleted from the configuration.

Database connection

PropertyDescriptionExample
URLOracle JDBC thin URLjdbc:oracle:thin:@myhost:1521:ORCL
DBUserOracle schema/userCRPDTA
DBPasswordBase64-encoded password (use decodePasswd())TXlTZWNyZXRQYXNzd29yZA==
schemaOracle schema prefix used in all SQL queriesCRPDTA
tableLogMain invoice log tableF564230
Password encoding

The DBPassword value must be Base64-encoded using java -jar nomaubl.jar -password <yourpassword>. The application calls decodePasswd() internally. Do not store the plain-text password here.

Path configuration

NomaUBL uses two path variables that are substituted at runtime throughout all template property values:

VariablePropertyDescription
%APP_HOME%appHomeRoot directory of the application deployment
%PROCESS_HOME%processHomeRoot directory for input/output/temp files

Example:

"appHome": "/opt/nomaubl",
"processHome": "/opt/nomaubl/process"

Processing directories

PropertyDescriptionExample
dirInputWhere JDE XML spool files are read from%PROCESS_HOME%/input
dirOutputWhere generated PDF/UBL files are written%PROCESS_HOME%/output
tempOutputTemporary working directory%PROCESS_HOME%/temp
burstOutputOutput directory for BURST mode%PROCESS_HOME%/burst
singleOutputOutput directory for SINGLE mode%PROCESS_HOME%/single

Oracle XDO configuration

PropertyDescriptionExample
xdoConfigPath to the Oracle XDO configuration file (xdo.cfg)%APP_HOME%/config/xdo.cfg
rtfTemplatePath to the RTF template directory%APP_HOME%/templates

Ghostscript (optional)

Used for PDF post-processing (merging, compression).

PropertyDescriptionExample
runGSY to enable Ghostscript, N to skipY
cmdGSFull command path to the gs binary/usr/bin/gs

Parallelism

PropertyDescriptionExample
numProcNumber of parallel threads for batch processing4

XSLT transform

PropertyDescriptionExample
transformYNY to apply an XSLT pre-transform to the JDE XML before processingY
transformPath to the pre-transform XSLT stylesheet%APP_HOME%/xsl/pretransform.xsl

Routing and copy

PropertyDescriptionExample
routageRouting configuration (used to dispatch output files)
copyCopy rule for output distribution

SCP / SFTP download

These settings enable downloading XML files directly from the JDE server via SFTP (used by the Download XML from Server feature in the web interface).

PropertyDescriptionExample
scpHostSFTP server hostnamejde-server.company.com
scpUserSFTP usernamejdeadmin
scpPasswordSFTP password
scpPortSFTP port22
scpRemotePathRemote base path for XML files/jde/output

Locale and developer mode

PropertyDescriptionExample
setLocaleForce a specific Java localefr_FR
devModeEnable developer mode (extra logging)N
devXSLPath to an alternative XSLT for development
updateDBY to write to Oracle tables, N to skip DB writes (useful for testing)Y