Yes, I see what you mean. However, when I simply pasted your code and click the Test Run, I get an error.
The error has something to do with this line. I think you have comma separated values that may not make sense.
productVariantExtension/data/category236,218,217
You might want to engage us to perform the work if this is easier. Your promotion rule is quite complex.