Hi, I'm trying to update some fields of the correlated event in a Sentinel custom action. This is my code:

var corrEvt = scriptEnv.getCorrelatedEvent();
corrEvt.setCv21( "Custom message" );
corrEvt.save();

If I put it inside the Input.prototype.get() method it works fine. but when I put it in normalize() or doAction() it raises this error:

Tue Jun 23 19:21:21 ART 2015|SEVERE|pool-34-thread-2|esecurity.ccs.comp.script.executor.JavaScriptExe cutor.execute
; Exception Wrapped java.lang.RuntimeException: Attempt to modify Final object Event attribute cv21 (/var/opt/novell/sentinel/data/server.cache/javascript_action_plugins/EmailSites_87CA9EDE210103290E26762249A8966_8477924 901603745221/main.script#420); org.mozilla.javascript.WrappedException; ; Caused by Attempt to modify Final object Event attribute cv21; java.lang.RuntimeException;
Tue Jun 23 19:21:21 ART 2015|SEVERE|pool-34-thread-2|esecurity.ccs.comp.script.executor.JavaScriptExe cutor.execute
org.mozilla.javascript.WrappedException: Wrapped java.lang.RuntimeException: Attempt to modify Final object Event attribute cv21 (/var/opt/novell/sentinel/data/server.cache/javascript_action_plugins/EmailSites_87CA9EDE210103290E26762249A8966_8477924 901603745221/main.script#420)
at org.mozilla.javascript.Context.throwAsScriptRuntim eEx(Context.java:1757)
at org.mozilla.javascript.MemberBox.invoke(MemberBox. java:170)
at org.mozilla.javascript.NativeJavaMethod.call(Nativ eJavaMethod.java:243)
at org.mozilla.javascript.optimizer.OptRuntime.call1( OptRuntime.java:66)
at compiled._c12(/var/opt/novell/sentinel/data/server.cache/javascript_action_plugins/EmailSites_87CA9EDE210103290E26762249A8966_8477924 901603745221/main.script:420)
at compiled.call(/var/opt/novell/sentinel/data/server.cache/javascript_action_plugins/EmailSites_87CA9EDE210103290E26762249A8966_8477924 901603745221/main.script)
at org.mozilla.javascript.optimizer.OptRuntime.callPr op0(OptRuntime.java:119)
at compiled._c0(/var/opt/novell/sentinel/data/server.cache/javascript_action_plugins/EmailSites_87CA9EDE210103290E26762249A8966_8477924 901603745221/main.script:7693)
at compiled.call(/var/opt/novell/sentinel/data/server.cache/javascript_action_plugins/EmailSites_87CA9EDE210103290E26762249A8966_8477924 901603745221/main.script)
at org.mozilla.javascript.ContextFactory.doTopCall(Co ntextFactory.java:393)
at org.mozilla.javascript.ScriptRuntime.doTopCall(Scr iptRuntime.java:2834)
at compiled.call(/var/opt/novell/sentinel/data/server.cache/javascript_action_plugins/EmailSites_87CA9EDE210103290E26762249A8966_8477924 901603745221/main.script)
at compiled.exec(/var/opt/novell/sentinel/data/server.cache/javascript_action_plugins/EmailSites_87CA9EDE210103290E26762249A8966_8477924 901603745221/main.script)
at esecurity.ccs.comp.script.executor.JavaScriptExecu tor.execute(JavaScriptExecutor.java:105)
at esecurity.ccs.comp.correlation.action.CorrelationS criptExecutor$2.run(CorrelationScriptExecutor.java :322)
at java.util.concurrent.Executors$RunnableAdapter.cal l(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.jav a:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: Attempt to modify Final object Event attribute cv21
at esecurity.base.datamodel.BaseAttributeObject.setAt tribute(BaseAttributeObject.java:273)
at esecurity.db.object.EventImpl.setCv21(EventImpl.ja va:14543)
at esecurity.db.object.EventWrapper.setCv21(EventWrap per.java:14546)
at esecurity.db.object.EventWrapper.setCv21(EventWrap per.java:14546)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.mozilla.javascript.MemberBox.invoke(MemberBox. java:155)
... 18 more


Is there any restriction to use this functions outside get() method ?

Thanks in advance !