On Save OM Extension to auto apply hold on SO Line
Summary:
OM extension to apply Hold on Save
Content (required):
A specific hold has to be auto applied if Order Type is 'Orders Reserve'. I provided code snippet used for the OM extension 'On Save'. Though there are no validation messages, when I save an Order of type 'Orders Reserve', I get error mentioned below. Full error message is attached. Any help is appreciated.
Error:
'error occurred when running extension Do Not Close Order, during event On Save: oracle.jbo.JboException: JBO-29000: Unexpected exception caught: org.codehaus.groovy.runtime.InvokerInvocationException, msg=groovy.lang.MissingMethodException: No signature of method: ExID300000038624988__84.If() is applicable for argument types: (String, ExID300000038624988__84$_run_closure1) values: [Order Reserve, ExID300000038624988__84$_run_closure1@8a602fe] Possible solutions: run(), run(), any(), find(), is(java.lang.Object), wait() RootCause Exception message : groovy.lang.MissingMethodException: No signature of method: ExID300000038624988__84.If() is applicable for argument types: (String, ExID300000038624988__84$_run_closure1) values: [Order Reserve, ExID300000038624988__84$_run_closure1@8a602fe] Possible solutions: run(), run(), any(), find(), is(java.lang.Object), wait() Call Stack: