|Re: Edit->Validate and EVL in EOL [message #820144 is a reply to message #782948]
||Tue, 13 March 2012 19:42
| Paulo Alexandre
Registered: November 2011
Hi, Horacio Hoyos|
first, I thank you for your support! It is of great help.
That pseudocode depicts almost perfectly my idea. But I'm not calling any java code. I'm just using just epsilon and a single .evl file (and wizards through EWL too).
I've had this idea:
In each evl constraint , in the 'check' I've added a dumb function like
check: dumb(self.name<>'')//self.name<>'' is the real constraint I want to check
message: 'Any message'
operation dumb(x:Boolean, a:AnyClass)
//storage the value of x in any variable
a.error:=x; //It raises an error!!!!
So, every time any constraint was checked the dumb function would be called allowing to store the value of the verification.
But, at the line ''a.error:=x;'' an error is raised.
In few words, this is the error:
an runtime erro was raised during the evaluation ... Internal Error: java.lang.IllegalStateException: Cannot modify resource set without a write transaction
Apparently, I need to declare a write transaction but I have absolutely no idea of where to start.
Anyway, I thank you again for your time and attention!
Powered by FUDForum
. Page generated in 0.07071 seconds