[jboss-jira] [JBoss JIRA] (DROOLS-1202) I am not able to assign keys to Enum value through external data objects

Michael Anstis (JIRA) issues at jboss.org
Mon Jul 16 16:52:00 EDT 2018


    [ https://issues.jboss.org/browse/DROOLS-1202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13605825#comment-13605825 ] 

Michael Anstis commented on DROOLS-1202:
----------------------------------------

[~jomarko] It is not possible to mix and match Java enumerations and MVEL-based enumerations.

IMO it should be closed as "Will not fix" with the recommendation to use MVEL-based enumerations if key/value mapping is required.

> I am not able to assign keys to Enum value through external data objects
> ------------------------------------------------------------------------
>
>                 Key: DROOLS-1202
>                 URL: https://issues.jboss.org/browse/DROOLS-1202
>             Project: Drools
>          Issue Type: Bug
>            Reporter: Fatema Rangwala
>            Assignee: Mark Proctor
>              Labels: drools-tools
>         Attachments: TestEnumPrac.java
>
>
> I was able to import Enum through data objects in workbench. But when I tried to add keys to enum value it is not supported.
> For e.g. in workbench it is supported to assign keys to enum value like [F='Female', M='Male'].
> But not able to assign keys to enum using external data object.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list