[jboss-jira] [JBoss JIRA] (DROOLS-2373) BRL "is contained in the (comma separated) list" does not produce multiselect dropdown

Michael Anstis (JIRA) issues at jboss.org
Thu Mar 8 16:38:00 EST 2018


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

Michael Anstis commented on DROOLS-2373:
----------------------------------------

Sweet... OK, so the problem is when we extract Template Keys from the {{RuleModel}} we only store Fact and Field information; not Operator. Then when we use the Template Key information to build the {{BRLConditionVariableColumn}} we don't have the operator and hence it is always {{null}}. {{RuleModelVisitor}} needs enhancing, as does {{InterpolationVariable}} to hold an optional operator that can then be used by {{BRLConditionColumnPlugin#convertInterpolationVariables()}}. 

> BRL "is contained in the (comma separated) list" does not produce multiselect dropdown
> --------------------------------------------------------------------------------------
>
>                 Key: DROOLS-2373
>                 URL: https://issues.jboss.org/browse/DROOLS-2373
>             Project: Drools
>          Issue Type: Bug
>          Components: Guided Decision Table Editor, Guided Rule Editor
>    Affects Versions: 7.6.0.Final
>         Environment: Tomcat 8.5 / RHEL 7
>            Reporter: Yannick Geerts
>            Assignee: Michael Anstis
>
> Google groups link: https://groups.google.com/forum/#!topic/drools-usage/VElZ3KAZMIs
> *Edited*
> The problem is that in the piece of code below the expression {{column.getOperator()}} returns null. 
> {{BRLConditionVariableColumnConverter#convertColumn}}
> {code:java}
> if (OperatorsOracle.operatorRequiresList(column.getOperator())) {
>                 return newMultipleSelectEnumColumn(factType,
>                                                    factField,
>                                                    column,
>                                                    access,
>                                                    gridWidget);
>             } else {
>                 return newSingleSelectionEnumColumn(factType,
>                                                     factField,
>                                                     dataType,
>                                                     column,
>                                                     access,
>                                                     gridWidget);
>             }
> {code}



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


More information about the jboss-jira mailing list