Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
#823473
Hi Support,

How can i access the SYS_SYS variable in plugin. If i access i got the notice error. Please give a solution :?:

PHP Notice: Use of undefined constant SYS_SYS - assumed 'SYS_SYS' in C:\Bitnami\processmaker-3.2-0\apps\processmaker\htdocs\workflow\engine\plugins\sample\test\db.php on line 19
#823478
You can access the system variables this way in plugins:
$_SESSION['SYS_SYS']
$_SESSION['SYS_SKIN']
$_SESSION['SYS_LANG']
$_SESSION['USER_LOGGED']

If you have an open case, then you also access these system variables:
$_SESSION['APPLICATION']
$_SESSION['INDEX']
$_SESSION['PROCESS']
$_SESSION['TASK']

These variables will be available until the login session expires. To avoid problems, you should add this code to your plugin to redirect to the login screen if the login session expires.
Code: Select all
if (!isset($_SESSION['USER_LOGGED'])) {
    header("Location: ../login/login");
}

In the rapidly evolving world of online sports be[…]

STEPN integrates social networking and games that […]

Cenforce 150 is a medication used to cope with a c[…]

What's SAP FICO?

Trustworthy and skill-building, each of these actu[…]