Skip to Main Content

Rule Author Syntax Error

678086Jan 4 2009 — edited Jan 5 2009
I am new to this forum. Recently I have been working with Oracle SOA platform. I am trying to build rules in Rules Author using XML facts. The Java code is generated using JAXB. I am able to import the java types generated and use the same in defining RL functions and RuleSets. But when I generate RL code and do a RL Syntax check in the syntax check fails.

I am getting error as follow

A syntax error is found.
Error:'generated.DriverType' is undefined at line 4 column 14 in DM

1. ruleset DM
3. {
4. fact class generated.DriverType supports xpath{ hide property ableToDrive, driverLicenseNumber, licenseType, preAccidents, preConvictions, vehicleType; };
5. fact class generated.ObjectFactory supports xpath;
6. fact class generated.RepositoryType supports xpath;{color}

So I have two questions. Why rule author is not able to find the Drivertype and if it is NOT loading the class files where should we keep the files for the RuleAuthor to see these classes. And also during runtime.

I am working with the following XML Schema

<?xml version="1.0"?>
<schema xmlns=""

<element name="repository" type="car:repositoryType"/>
&lt;complexType name="repositoryType"&gt;
&lt;element name="driver" type="car:driverType"
minOccurs="0" maxOccurs="unbounded"/&gt;

&lt;complexType name="driverType"&gt;
&lt;element name="driver-license-number" type="string"/&gt;
&lt;element name="name" type="string"/&gt;
&lt;element name="age" type="int"/&gt;
&lt;element name="vehicle-type" type="string"/&gt;
&lt;element name="license-type" type="string"/&gt;
&lt;element name="pre-convictions" type="int" default="0"/&gt;
&lt;element name="pre-accidents" type="int" default="0"/&gt;
&lt;element name="able-to-drive" type="boolean"/&gt;
As you can see this is from the car example...

This post has been answered by 493308 on Jan 5 2009
Jump to Answer
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked due to inactivity on Feb 2 2009
Added on Jan 4 2009
1 comment