WebSphere Message Broker, Version 8.0.0.7
Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS
See information about the latest product version
See information about the latest product version
Modifying pattern instances by using PHP
Add PHP code to a code plug-in project to modify a pattern instance when the pattern instance is generated by a pattern user.
Before you can complete this task, you
must have completed the following tasks:
You can add PHP code to a code plug-in project by selecting
a PHP script, which runs when a pattern instance is generated. You
can choose whether to write the output of this script to a file. For
example, you can write a PHP script that creates an ESQL file that
is used in your user-defined pattern.
If you added PHP support when you created the code plug-in, a PHP template and example scripts are created and added to the project. Alternatively, you can write your own PHP script. Regardless of how the script is created, you must add your own code within the script to complete the steps you require when the pattern instance is generated. For examples of PHP code for completing common tasks, see Examples of PHP API code. For reference information about the PHP pattern authoring API, see PHP API for user-defined patterns.
To select a PHP script to run when a pattern instance is generated:
Next:
In the PHP script that you selected to run when the pattern instance is generated, you must now write the code to perform the steps you require. For examples of PHP code for completing common tasks, see Modifying pattern instances by using PHP. For reference information about the PHP pattern authoring API, see PHP API for user-defined patterns.