IBM Integration Bus, Version 10.0.0.5 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS


mb_pattern_run_template

Use the mb_pattern_run_template function to run a PHP script from within another script in user-defined patterns.

The following example shows how the mb_pattern_run_template function is called:

mb_pattern_run_template(string $project_name, string template_path, string $output_path);

The arguments taken by mb_pattern_run_template are shown in the following table.

Argument Description
project_name The name of the pattern instance project to which the output from the template is written. You can include the pattern instance name if you are not using an exemplar project.For example, if the pattern includes an exemplar project called project1, and the pattern user creates an instance called instance1, the project_name is project1 (although the actual project name created is instance1_project1). However, if the pattern is not an exemplar project, you can specify the prefix for that project: instance1_project1.
template_path The relative path from this PHP script to the template PHP script that you want to run. For example, if the template script is called example.esql.php and it is in the same directory, template_path is example.esql.php. If the template script is in a subdirectory, testdirectory, of the directory where the current script is located, template_path is testdirectory/example.esql.php.
output_path The relative path in the project to where the output from the template script is written. This path is relative to the root directory of the pattern instance project specified by project_name. The path must exist. For example, if the output file is called example.esql and is written to the root directory of the pattern instance project, output_path is example.esql. If the file is written to a subdirectory, outputdirectory, of the pattern instance project, output_path is outputdirectory/example.esql

bc31230_.htm | Last updated 2016-06-25 08:08:36