I am using ScriptAssert and the script work's fine. Now I would like to move the script to properties file.
I am able to read PONumber.mandatory as part of message. I am unable to read PONumber.mandatory.script as part of script. Any help is appreciated.
ValidationMessages.properties
PONumber.mandatory.script=!(_.OBJSTATE.equals('RELEASED') && (_.PONumber == '' ))
PONumber.mandatory=PONumber value is Mandatory
In Java:
@ScriptAssert(lang="javascript",script="{PONumber.mandatory.script}",alias = "_",message="{PONumber.mandatory}")