Also, please stop telling that it doesnt work, but try to provide context. What exactly does not work, is there an error message, is there an exception, have you tried to run the execute watch API and can you paste the output.
I suppose that you cannot access payload because it must be ctx.payload, please check the existing examples, we have a fair share of them in our examples repo
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.