You can't use payload
in that expression - there is no message yet; that expression is "Expression to be evaluated to produce a value for the payload.", per the XSD documentation.
We should explain more clearly in the documentation that the root object for this expression is a Gemfire EntryEvent
(javadocs here).
If you want to pass the entire event into your function, use #root
.
expression="#match(#root)==true"
or you could do something like
expression="#match(key, oldValue, newValue)==true"