[
https://issues.jboss.org/browse/DROOLS-980?page=com.atlassian.jira.plugin...
]
Alejo Jara commented on DROOLS-980:
-----------------------------------
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={id_negocio=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)