See information about the latest product version
Accessing user-defined properties from a PHPCompute node
Customize a PHPCompute node to access properties that you have associated with the message flow in which the node is included.
To access these properties from a PHPCompute node, use the mb_get_user_defined_property(name) method, where name is the name of the property that you are accessing. This method returns a PHP datatype equivalent to the ESQL broker type in the property definition.
For more information about the ESQL to PHP mappings, see PHP data types.
You can use the Message Broker API (also known as the CMP API) to change the value of user-defined properties. Use the getUserDefinedPropertyNames(), getUserDefinedProperty(), and setUserDefinedProperty() methods to query, discover, and set user-defined properties, as described in Setting message flow user-defined properties at run time in a CMP application.