[JBoss JIRA] Created: (JBRULES-3010) invalid dialect attribute value => NPR
by Wolfgang Laun (JIRA)
invalid dialect attribute value => NPR
--------------------------------------
Key: JBRULES-3010
URL: https://issues.jboss.org/browse/JBRULES-3010
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-compiler (expert)
Affects Versions: 5.2.0.M2
Reporter: Wolfgang Laun
Assignee: Mark Proctor
Fix For: 5.2.0.CR1
rule insFirst
dialect "mvl"
when
then
end
Exception in thread "main" java.lang.NullPointerException
at org.drools.rule.builder.RuleBuilder.build(RuleBuilder.java:74)
at org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:1613)
at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:690)
at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:310)
at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:486)
at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:28)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 7 months
[JBoss JIRA] Created: (JBRULES-2248) Drools Expert User Guide errors
by Karsten Thoms (JIRA)
Drools Expert User Guide errors
-------------------------------
Key: JBRULES-2248
URL: https://jira.jboss.org/jira/browse/JBRULES-2248
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-docs
Affects Versions: 5.0.1.FINAL
Reporter: Karsten Thoms
Assignee: Mark Proctor
Priority: Trivial
Some minor issues I found when following the User Guide:
Improvement: Variable 'kbase' is not introduced in the first example. Add declaration and instantiation to example in 2.1.1.
Rule "Status output when things are ok"
error:
not Sprinkler( on === true )
correct:
not Sprinkler( on == true )
ERROR
if ( kbuilder.hasErrors() ) {
System.err.println( builder.getErrors().toString() );
}
CORRECT
if ( kbuilder.hasErrors() ) {
System.err.println( kbuilder.getErrors().toString() );
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 7 months
[JBoss JIRA] Created: (JBRULES-2763) Event declaration using fqn
by Samuli Saarinen (JIRA)
Event declaration using fqn
---------------------------
Key: JBRULES-2763
URL: https://jira.jboss.org/browse/JBRULES-2763
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Environment: Java 1.6
Drools 5.1.1
Reporter: Samuli Saarinen
Assignee: Mark Proctor
I'm trying to create event declaration using fqn in the declaration but
for some reason it doesn't work. I have the following rule:
package com.test.pkg
declare com.test.Event1
@role(event)
@expires(2s)
end
compiling it produces the following error:
[6,11]: [ERR 103] Line 6:11 rule 'end_key' failed predicate:
{(validateIdentifierKey(DroolsSoftKeywords.END))}? in com
But if I change it as follows:
package com.test.pkg
import com.test.Event1
declare Event1
@role(event)
@expires(2s)
end
Everything works as expected...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 7 months