[ http://jira.codehaus.org/browse/DROOLS-272?page=comments#action_49679 ] 

Vishal Santoshi commented on DROOLS-272:
----------------------------------------

I have just started/analysing  drools .

Here is my issue and i did not open up a new one b'coz it seems related.
In the House example using SMF if i use something like 

module.uri=http://drools.org/semantics/java
Condition(conditions)     : org.drools.semantics.java.JavaExprConditionFactory
Consequence(consequence) : org.drools.semantics.java.JavaBlockConsequenceFactory

NOTE I changed Condition(condition)  to Condition(conditions)

and change the house.drl to express the change , I am warned with the same 
cvc-complex-type.2.4.a: Invalid content was found starting with element 
'annotation:rule'. One of '{"http://drools.org/rules":rule}' is expected
Though it does go ahead and execute the flow . 







> Make annotation drl syntax consistent with other modules
> --------------------------------------------------------
>
>          Key: DROOLS-272
>          URL: http://jira.codehaus.org/browse/DROOLS-272
>      Project: drools
>         Type: Improvement
>   Components: semantics.annotation
>     Versions: 2.0-beta-19
>     Reporter: Barry Kaplan
>     Assignee: Barry Kaplan
>     Priority: Minor

>
>
> The current declaration for a java-annotation rule in a drl file is:
>     <annotation:rule name="rule-name" class="class-name"/>
> Make it something closer to:
>     <rule name="rule-name">
>         <annotation:class>class-name</annotation:class>
>     </rule>
> ----
> Hopefully this will get rid of the following messages:
> (null: 11, 82): src-resolve: Cannot resolve the name 'rules:abstractRule' to 
> a(n) 'element declaration' component.
> (null: 11, 82): src-element.3: Element 'rule' has both a 'type' attribute and 
> a 'anonymous type' child. Only one of these is allowed for an element.
> (file:/Q:/drools/drools-annotation-examples/target/eclipse-classes/org/drools/semantics/annotation/examples/helloworld/helloworld.mixed.drl:
>  33, 95): cvc-complex-type.2.4.a: Invalid content was found starting with 
> element 'annotation:rule'. One of '{"http://drools.org/rules":rule}' is 
> expected.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to