Hi, I am trying to split large ruleset (Main.ruta) into several smaller and then work with them in the normal fashion
SCRIPT path.to.my.Script1; SCRIPT path.to.my.Script2; CALL(Script1); CALL(Script2); I have some common part that should be done before calling Script1 and Script2. This common part includes definition of a number of CONDITION statements. Looks like this constructs are not available in included scripts. I receive an error a la Caused by: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: org.apache.uima.ruta.extensions.RutaParseRuntimeException: Error in Script1, line 14, "(": expected OPTIONAL, but found LPAREN that hits just before the construction is used. As soon as I copy the CONDITION statement to the Script1, the error disappears. The question is how to make these statements available to the included scripts? What if I extract them into a dedicated ruta script, can I then import them in all scripts that use them: Main, Script1 and Script2? In a way similar to TYPESYSTEM Thank you in advance. Best regards, Nikolai