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

@MessageBrokerSimpleTransform

Use the @MessageBrokerSimpleTransform annotation to alter the behavior of the evaluate method in a PHP class.

The @MessageBrokerSimpleTransform annotation causes two parameters to be passed to the evaluate method. The first parameter is a reference to the output assembly, and the second parameter is a reference to the input assembly. The second parameter is optional.

If the MessageBrokerSimpleTransform and MessageBrokerCopyTransform annotations are specified together, the MessageBrokerCopyTransform annotation takes precedence.

The following example copies the subtree under element aaa into the output tree under element bbb:

<?php

class SimpleTransform {

/**

     * An example of MessageBrokerSimpleTransform
     * @MessageBrokerSimpleTransform

     */

    function evaluate($output_assembly, $input_assembly) {

        $output_assembly->XMLNSC->bbb = $input_assembly->XMLNSC->aaa;
    }

}

?>
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


Concept topicConcept topic | Version 8.0.0.7 | ac69031_