Difference between revisions of "OS4X plugin os4xplugin create internal job"

From OS4X
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
[[Category:Plugins]]
 
[[Category:Plugins]]
== Zweck ==
 
Erzeugt aus dem übergebenen Auftrag einen neuen Auftrag, wobei Absender und Adressat vertauscht werden. Um ohne unnötigen Overhead bei der Erzeugung interner Aufträge (also solche, die das System nicht verlassen werden) zu vermeiden ist dieses Plugin sehr gut geeignet.
 
Die Plugingruppe des neuen Empfängers (also des alten Absenders) wird mit den Auftragsdateien erneut durchgeführt.
 
  
 +
== Purpose ==
 +
Creates a new order from the transferred order, whereby the sender and addressee are swapped. This plugin is very suitable for avoiding unnecessary overhead when generating internal orders (i.e. those that will not leave the system).
 +
The plugin group of the new recipient (i.e. the old sender) is executed again with the order files.
  
== Rückgabewerte ==
+
The created job is saved as a reference in the database (which makes it possible to be searched for in OS4X Webaccess), also a link is displayed in OS4X Webaccess:
*0: alles OK
+
 
*1: XML konnte nicht geparsed werden
+
[[File:Bildschirmfoto 2026-01-08 um 14.24.00.png]]
 +
 
 +
[[File:Bildschirmfoto 2026-01-08 um 14.24.58.png]]
 +
 
 +
The referenced job number can be obtained via the XPath "<code>/OS4X_job/internal_jobreference</code>". When restarting the plugin, the previous value will be overwritten.
 +
 
 +
== Return codes ==
 +
*0: everything OK
 +
*1: Number of parameters != 1; Config file <code>/etc/os4x.conf</code> not found; Config in database not readable; License not valid; XML file invalid

Latest revision as of 13:29, 8 January 2026


Purpose

Creates a new order from the transferred order, whereby the sender and addressee are swapped. This plugin is very suitable for avoiding unnecessary overhead when generating internal orders (i.e. those that will not leave the system). The plugin group of the new recipient (i.e. the old sender) is executed again with the order files.

The created job is saved as a reference in the database (which makes it possible to be searched for in OS4X Webaccess), also a link is displayed in OS4X Webaccess:

Bildschirmfoto 2026-01-08 um 14.24.00.png

Bildschirmfoto 2026-01-08 um 14.24.58.png

The referenced job number can be obtained via the XPath "/OS4X_job/internal_jobreference". When restarting the plugin, the previous value will be overwritten.

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