[
https://issues.jboss.org/browse/DROOLS-245?page=com.atlassian.jira.plugin...
]
georg tornqvist commented on DROOLS-245:
----------------------------------------
Here it comes!
Georg
//created on: 26-aug-2013
package io31
import nl.zorgregistratie.www.azr._3_2.basisschema.schema._1_0.*
import nl.zorgregistratie.www.azr._3_2.io31.schema._1_0.Client;
import java.util.Date;
//list any import classes here.
//declare any global variables here
global Date systeemDatum
rule "Your First Rule"
//dialect "mvel"
ruleflow-group "rulegroepIO31"
lock-on-active
when exists Client()
then
System.out.println("############# Client met bsn is gevonden!!
##################");
end
Drools sees a type as a package
--------------------------------
Key: DROOLS-245
URL:
https://issues.jboss.org/browse/DROOLS-245
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 5.5.0.Final
Reporter: georg tornqvist
Assignee: Mark Proctor
Hi,
I want Drools to reason over an axis2 type, but the Drools compiler sees the type as a
package, see error message below.
Strictly speaking, the Drools compiler may be right. The type "Client"
encapsulates a "Factory" class, making hierarchically speaking the class
"Client" a package.
Although I'm fairly new to Drools, I'm pretty sure that the behavior I'm
experiencing is not right. The Drools version used in the WSO2BRS-2.0.0 is able to reason
over the very same axis2 types.
Error importing : 'nl.domain.www.schema.Client'
Rule Compilation error : [Rule name='Your First Rule']
io31/Rule_Your_First_Rule_16db2a632a4b4efd96dde4c6d6a55cdf.java (2:57) : Only a type can
be imported.
nl.domain.www.schema.Client resolves to a package
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira