Hehe, ok this must be a bug with 5.3.0.Final.
I was using 5.4.0.CR1. There have been various fixes around enums and this,
I assume, must be one.
I would have to recommend you try with the latest version - but appreciate
thus might not be an option.
5.4.0.Final is due out very soon.
sent on the move
On 18 Apr 2012 22:50, "Sean Su" <sean.x.su(a)gmail.com> wrote:
I tried "Literal value" first. but it only gives me the
text field and an
OK button. That was when I switched to expression.
Now what do I miss here :)?
On Wed, Apr 18, 2012 at 5:42 PM, Michael Anstis <michael.anstis(a)gmail.com>wrote:
> The problem appears to be your use of an expression in the right-hand
> side of the "equal to" comparison. If you choose "Literal value"
the enum
> is presented correctly.
>
> When using an expression the enums members are not presented as this is
> really meant to navigate an object model.
>
>
> On 18 April 2012 22:35, Sean Su <sean.x.su(a)gmail.com> wrote:
>
>> Please give a try to this version. I probably did not save the changes.
>>
>> Sean
>>
>>
>> On Wed, Apr 18, 2012 at 5:28 PM, Michael Anstis <
>> michael.anstis(a)gmail.com> wrote:
>>
>>> I opened the "Overlapping Test" rule and it has no
content\definition.
>>>
>>> Am I missing something?
>>>
>>>
>>> On 18 April 2012 22:12, Sean Su <sean.x.su(a)gmail.com> wrote:
>>>
>>>> Yes, it has been uploaded onto the repository, though there are some
>>>> examples (from Drools) in the jar which I do not need to evaluate.
>>>>
>>>> Attached is the exported repository. The rule is in the
>>>> ...rules.overlappingrules package.
>>>>
>>>> Thanks
>>>>
>>>> Sean
>>>>
>>>>
>>>> On Wed, Apr 18, 2012 at 5:09 PM, Michael Anstis <
>>>> michael.anstis(a)gmail.com> wrote:
>>>>
>>>>> Yes, just the repository export will be fine. Provided you have
>>>>> uploaded the model JAR into Guvnor as a POJO model it will be (if
you
>>>>> haven't try that first!)
>>>>>
>>>>> sent on the move
>>>>>
>>>>> On 18 Apr 2012 22:04, "Sean Su" <sean.x.su(a)gmail.com>
wrote:
>>>>>
>>>>>> I am evaluating 5.3.final.
>>>>>>
>>>>>> No I am not using DSL yet but plan to do so if we can pass the
>>>>>> evaluation phase.
>>>>>>
>>>>>> Would the zip file exported from Guvnor (plus the jar POJO model)
be
>>>>>> good enough? If yes, I can send over.
>>>>>>
>>>>>> thanks
>>>>>>
>>>>>> Sean
>>>>>>
>>>>>> On Wed, Apr 18, 2012 at 4:54 PM, Michael Anstis <
>>>>>> michael.anstis(a)gmail.com> wrote:
>>>>>>
>>>>>>> Yes, but perhaps not specifically for your use-case.
>>>>>>>
>>>>>>> What version of Guvnor are you using? I assume you are using
a DSL?
>>>>>>> Can you provide a self-contained repository export?
>>>>>>>
>>>>>>> sent on the move
>>>>>>>
>>>>>>> On 18 Apr 2012 21:36, "Sean Su"
<sean.x.su(a)gmail.com> wrote:
>>>>>>>
>>>>>>>> Has anyone here successfully used Enum in the guided
editor in
>>>>>>>> Guvnor?
>>>>>>>>
>>>>>>>> I am trying to build a patter with the following pseudo
condition
>>>>>>>> but could not get the Enum list displayed in the drop
down of the Enum:
>>>>>>>>
>>>>>>>> "There is an Event with Event.type (Enum EventType)
equal to
>>>>>>>> EventType.someType".
>>>>>>>>
>>>>>>>> Here, someType is one of the enum defined in
EventType.java.
>>>>>>>>
>>>>>>>> Event.java has getType() method returns EventType.
>>>>>>>>
>>>>>>>> Everything seems working fine, exception in the drop down
of
>>>>>>>> EventType, there is no enum defined. It only has the
standard API from Enum
>>>>>>>> listed there.
>>>>>>>>
>>>>>>>> Any input is appreciated.
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>>
>>>>>>>> Sean
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> rules-users mailing list
>>>>>>>> rules-users(a)lists.jboss.org
>>>>>>>>
https://lists.jboss.org/mailman/listinfo/rules-users
>>>>>>>>
>>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> rules-users mailing list
>>>>>>> rules-users(a)lists.jboss.org
>>>>>>>
https://lists.jboss.org/mailman/listinfo/rules-users
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> "But beware of the Dark Side. Anger, fear, aggression - the
Dark
>>>>>> Side of the Force are they." -Yoda
>>>>>>
>>>>>> _______________________________________________
>>>>>> rules-users mailing list
>>>>>> rules-users(a)lists.jboss.org
>>>>>>
https://lists.jboss.org/mailman/listinfo/rules-users
>>>>>>
>>>>>>
>>>>> _______________________________________________
>>>>> rules-users mailing list
>>>>> rules-users(a)lists.jboss.org
>>>>>
https://lists.jboss.org/mailman/listinfo/rules-users
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> "But beware of the Dark Side. Anger, fear, aggression - the Dark
Side
>>>> of the Force are they." -Yoda
>>>>
>>>> _______________________________________________
>>>> rules-users mailing list
>>>> rules-users(a)lists.jboss.org
>>>>
https://lists.jboss.org/mailman/listinfo/rules-users
>>>>
>>>>
>>>
>>> _______________________________________________
>>> rules-users mailing list
>>> rules-users(a)lists.jboss.org
>>>
https://lists.jboss.org/mailman/listinfo/rules-users
>>>
>>>
>>
>>
>> --
>> "But beware of the Dark Side. Anger, fear, aggression - the Dark Side of
>> the Force are they." -Yoda
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users(a)lists.jboss.org
>>
https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
>
>
--
"But beware of the Dark Side. Anger, fear, aggression - the Dark Side of
the Force are they." -Yoda
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users