[jboss-jira] [JBoss JIRA] (DROOLS-980) KieBase.getFactType should only be used to retrieve declared beans.
Alejo Jara (JIRA)
issues at jboss.org
Thu Nov 12 08:39:00 EST 2015
[ https://issues.jboss.org/browse/DROOLS-980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13128149#comment-13128149 ]
Alejo Jara edited comment on DROOLS-980 at 11/12/15 8:38 AM:
-------------------------------------------------------------
In my first version this is my class definition
ClassDefinition{className='com.example.types.Person', superClass='java.lang.Object', interfaces=[java.io.Serializable], definedClass=class com.example.types.Person, traitable=NONE, abstract=false, fields={name=FieldDefinition{name='name', type='java.lang.String', key=false, inherited=false, index=0, initExpr='null', annotations=null, accessor=[ClassFieldExtractor class=com.example.types.Person field=name]}}, annotations=null}
When kiescanner runs changing a rule to version two the Class Definition is
ClassDefinition{className='com.example.types.Person', superClass='java.lang.Object', interfaces=[java.io.Serializable, org.drools.core.factmodel.GeneratedFact], definedClass=class com.example.types.Person, traitable=null, abstract=false, fields={}, annotations=null}
The field "name" it has disappeared
was (Author: jhara):
In my first version this is my class definition
ClassDefinition{className='com.example.types.Person', superClass='java.lang.Object', interfaces=[java.io.Serializable], definedClass=class com.example.types.Person, traitable=NONE, abstract=false, fields={name=FieldDefinition{name='name', type='java.lang.String', key=false, inherited=false, index=0, initExpr='null', annotations=null, accessor=[ClassFieldExtractor class=com.example.types.Person field=name]}}, annotations=null}
When kiescanner runs without changes into kjar only change to version two the Class Definition is
ClassDefinition{className='com.example.types.Person', superClass='java.lang.Object', interfaces=[java.io.Serializable, org.drools.core.factmodel.GeneratedFact], definedClass=class com.example.types.Person, traitable=null, abstract=false, fields={}, annotations=null}
The field "name" it has disappeared
> KieBase.getFactType should only be used to retrieve declared beans.
> -------------------------------------------------------------------
>
> Key: DROOLS-980
> URL: https://issues.jboss.org/browse/DROOLS-980
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 6.3.0.Final
> Reporter: Alejo Jara
> Assignee: Mario Fusco
> Attachments: my_rules-1.jar
>
>
> Error inesperado en la ejecucion del artefacto
> java.lang.UnsupportedOperationException: KieBase.getFactType should only be used to retrieve declared beans. Class com.example.types.Person exists outside DRL
> at org.drools.core.definitions.impl.KnowledgePackageImpl.getFactType(KnowledgePackageImpl.java:635)
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list