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

Updating the local environment with the PHPCompute node

The local environment tree is part of the logical message tree in which you can store information while the message flow processes the message.

Follow these steps to update the local environment:

  1. Make a copy of the local environment to update.
  2. Use the following PHP code to alter the copy of the local environment:
    <?php
    
    class LocalEnv {
    
      /**
       * @MessageBrokerLocalEnvironmentTransform
       */
      function evaluate($output_assembly, $input_assembly) {
        	
        $output_assembly [MB_LOCAL_ENVIRONMENT] = $input_assembly->XMLNSC->Message;
        $output_assembly [MB_LOCAL_ENVIRONMENT]->Folder1 = 'some data';
        $output_assembly [MB_LOCAL_ENVIRONMENT]->Folder2->SubFolder = 'more data';
        }
    }
    
    ?>
Notices | Trademarks | Downloads | Library | Support | Feedback

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

        
        Last updated:
        
        Last updated: 2016-05-23 14:46:35


Task topicTask topic | Version 8.0.0.7 | ac69170_