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

_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 Message Broker Java 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.
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2016Copyright IBM Corporation 1999, 2016.

        
        Last updated:
        
        Last updated: 2016-05-23 14:47:54


Reference topicReference topic | Version 8.0.0.7 | bc31240_