Gateway here use “PaymentAmount”. From Postman I never send “PaymentAmount” variable at start, so I want to handle this with an expression, not a script.
Not Empty checks whether the field has value or not. In your case the field itself doesn’t exists. So you got this error response from process engine service.
Unknown property used in expression: ${not empty PaymentAmount}. Cause: Cannot resolve identifier 'PaymentAmount'"