What are JobRouter PHP functions?
By using JobRouter PHP functions you can develop your own scripts within JobRouter processes. These scripts allow you to extend the default functions of JobRouter by various additional functions.
PHP functions created by you are saved in the database, together with the process definitions. Of course, the current version of the process is taken into account. This means that changes made within a PHP function of a specific process version will not affect other process versions. If a new version of a process is created, all existing PHP functions are copied automatically. If you export a process, the PHP functions will be included in the export file. The functions are instantly available after importing a process into a different system.
JobRouter offers several default methods, which can be used within a PHP function to simplify creating your own functions. These methods can e.g. access process and instance data, change instance data and system parameters or retrieve configuration settings.
This manual gives you an overview over the PHP function functionality as well as all default methods provided by JobRouter for use in PHP functions. Additionally, it contains a short introduction to using PHP for beginners.
Please note: In JobRouter version 2 individual scripts were implemented as so called Export Functions. Those are still supported for processes created in version 2 and imported into version 3. However, new scripts should definitely use PHP functions. Future support for export functions in coming JobRouter versions can not be guaranteed.