[jboss-jira] [JBoss JIRA] (DROOLS-897) Binding variable or condition
Sante Stanisci (JIRA)
issues at jboss.org
Thu Aug 27 08:59:45 EDT 2015
[ https://issues.jboss.org/browse/DROOLS-897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sante Stanisci updated DROOLS-897:
----------------------------------
Attachment: workaround.drl
workaround with out use modify, but use directly reflection java in then condition
> Binding variable or condition
> -----------------------------
>
> Key: DROOLS-897
> URL: https://issues.jboss.org/browse/DROOLS-897
> Project: Drools
> Issue Type: Enhancement
> Components: core engine
> Affects Versions: 6.2.0.Final
> Environment: Windows 8
> Reporter: Sante Stanisci
> Assignee: Mario Fusco
> Labels: dynamic, instanciation, variable
> Attachments: rule.drl, workaround.drl
>
>
> In this example I have more classes that extends EntityBase (my class). In my intention, i would assign to variable $entity one of this class that is inserted in Ksession fact.
> I insert fact of CtbMovrCoan class
> In then statement of the rule at row 16, variable $entity is correctely,
> but in when statement variable $entity becomes JtbRLavt class (first declared in then cond) and this behavior throw a ClassCastException, obviously.
> Can Help me?
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
More information about the jboss-jira
mailing list