Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

Process Designer - using require_once (5 Comments)

$
0
0

Topic by RobertP

We want to share some code between Object Event Handlers in the Process Designer.  In our old external events, we had a file, integr_util.phph that was included (require_once) in our ee_incident_insert.php and ee_incident_update.php files.  I would like to do the same in the Process Designer, but where do I put the shared file and how do I access it to make edits?  

The old code is:

           require_once('/cgi-bin/pdgm.cfg/scripts/ext_evt/cci/integr_util.phph');

Can I just create a new Object Event Handler called integr_util, but don't associate it with any actual RN object events, and then include it in the incident_update and incident_create as follows:

 

           require_once('integr_util.php');

If this works, do I need to use an empty relative path, or give it a specific path?


Thanks,

Robert


Viewing all articles
Browse latest Browse all 2504

Trending Articles