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


_MB superglobal variables

The PHP API for user-defined patterns contains four variables within the _MB superglobal. You can use these variables in PHP scripts that are used to modify instances of user-defined patterns.

The _MB superglobal for the PHP API for user-defined patterns contains the variables shown in the following table.

Variable Description
PATTERN_INSTANCE_MANAGER Includes methods to log messages and get access to message flows. For more information about the methods available in PATTERN_INSTANCE_MANAGER, see IBM® Integration API. The following example shows you how to access PATTERN_INSTANCE_MANAGER methods:
<?php
    $pim = $_MB["PATTERN_INSTANCE_MANAGER"];
    $flow = $pim->getMessageFlow("Transform", "mqsi/Transform.msgflow");
    $node = $flow->getNodeByName("MQInput");
?>
PP Returns an array that is populated with the pattern parameters. The following example shows you how to print the value of the parameter pp2:
<?php
    var_dump($_MB['PP']['pp2']);
?>
PATTERN_INSTANCE_NAME Returns the name of the current pattern instance that is being generated.
WORKSPACE_ROOT Returns the full path to the current workspace location.

bc31240_.htm | Last updated 2015-11-27 00:01:08