Question
1
Replies
199
Views
Larsen and Toubro Infotech Ltd.
Posted: June 26, 2017
Last activity: July 17, 2017
Closed
Solved
How can we execute PHP code in Pega ?
Is it possible to execute PHP code in Pega through activity or data transform or any rule ?
***Moderator Edit: Vidyaranjan | Updated Categories***
Hello Srinivas,
Running the php is depend on the web server you are using. For tomcat, please refer the following url how to install php on tomcat
https://wiki.apache.org/tomcat/UsingPhp
You can not write php code in either activity or data transform. These rules are java based rules, you have the step method called "java" to execute java code in activity. You dont have the same for PHP. And whatever you write in these rules compiled and executed on JRE.
You can use, HTML or HTML fragment are the places to compose your php code.
Instead of doing this, we recommend to get whatever you want from php as a REST or SOAP and integrate them into Pega using REST and SOAP connector respectively.
Please feel free to reply your thoughts if any
Thank you,