[rules-users] conditions getting removed from Guided Rule

sumit dhaniya sumitdhaniya at gmail.com
Sat Jul 12 02:40:58 EDT 2014


Hi Michael can you confirm the download link for 6.1.CR2
http://downloads.jboss.org/drools/release/snapshot/6.1.x/kie-drools-wb-6.1.0-SNAPSHOT-tomcat7.0.war


On Sat, Jul 12, 2014 at 12:09 PM, sumit dhaniya <sumitdhaniya at gmail.com>
wrote:

> added a maven project as dependency in my project which contains mode pojo
> -> Create a guided rule -> In config of guided rule add the class which
> contains _id variable -> add a condition to the rule (the class object
> which contains _id) -> apply restriction on the fields (_id will be listed
> as one of the options to apply restriction on)
>
>
> On Sat, Jul 12, 2014 at 2:51 AM, Michael Anstis <michael.anstis at gmail.com>
> wrote:
>
>> I don't have access to the code here, but it sounds like _ prefixes are
>> invalid, which means we have a potential bug.
>>
>> Where/how did you manage to set _id binding?
>>
>> Sent on the move
>> On 11 Jul 2014 22:13, "sumit dhaniya" <sumitdhaniya at gmail.com> wrote:
>>
>>> I can create rule by selecting the field from fields dropdown but when I
>>> try to validate it throws error given below :-
>>>
>>> 2014-07-12 02:36:24,203 [http-bio-8080-exec-3] ERROR Unable to build
>>> KieBaseMode
>>> l:defaultKieBase
>>> Unable to Analyse Expression _id == $searchContext.lastThreeProducerId:
>>> [Error: no such identifier: _id]
>>> [Near : {... _id == $searchContext.lastThre ....}]
>>>              ^ : [Rule name='EateryRepeatUsage']
>>>
>>> data type of _id is string and same rule gets successfully validated if
>>> I use any other variable of string type.
>>>
>>>
>>> On Sat, Jul 12, 2014 at 2:30 AM, Michael Anstis <
>>> michael.anstis at gmail.com> wrote:
>>>
>>>> When you say "it doesn't allow me to use" can you be a little more
>>>> descriptive? Does the UI prevent it (I am thinking this is the case) or
>>>> does the DRL generate errors?
>>>>
>>>> Sent on the move
>>>> On 11 Jul 2014 21:44, "sumit dhaniya" <sumitdhaniya at gmail.com> wrote:
>>>>
>>>>> Thanks Mike I'll try with 6.1 and if issue still comes I'll share the
>>>>> drl.
>>>>>
>>>>> Can you please also confirm if I can use variables whose names start
>>>>> with "_" cause it seems it doesn't allows me to use _id
>>>>>
>>>>>
>>>>> On Sat, Jul 12, 2014 at 2:01 AM, Michael Anstis <
>>>>> michael.anstis at gmail.com> wrote:
>>>>>
>>>>>> What version?
>>>>>>
>>>>>> Have you tried 6.1.CR2 there were lots of improvements in this area.
>>>>>>
>>>>>> The issue is guided rules are stored as DRL and we need to reverse
>>>>>> engineer the model used by the UI from the DRL.
>>>>>>
>>>>>> Failing that we'll need your DRL so we can fix whatever issue exists
>>>>>> in your scenario.
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> Sent on the move
>>>>>> On 11 Jul 2014 21:27, "Sumit Dhaniya" <sumitdhaniya at gmail.com> wrote:
>>>>>>
>>>>>>> I'm creating a rule in which I'm comparing properties of two
>>>>>>> objects. All
>>>>>>> works well I'm able to compare their properties and rule gets
>>>>>>> validated as
>>>>>>> well and then I close the rule, but when I open the rule again
>>>>>>> properties of
>>>>>>> second object in condition don't show up in guided editor however
>>>>>>> they are
>>>>>>> present if I check the source of the guided rule.
>>>>>>> Moreover it also doesn't allows me to use _id variable which is
>>>>>>> present in
>>>>>>> my class whereas there is no issue if I use any other variable name
>>>>>>> id this
>>>>>>> due to "_"?
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> View this message in context:
>>>>>>> http://drools.46999.n3.nabble.com/conditions-getting-removed-from-Guided-Rule-tp4030308.html
>>>>>>> Sent from the Drools: User forum mailing list archive at Nabble.com.
>>>>>>> _______________________________________________
>>>>>>> rules-users mailing list
>>>>>>> rules-users at lists.jboss.org
>>>>>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> rules-users mailing list
>>>>>> rules-users at lists.jboss.org
>>>>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> rules-users mailing list
>>>>> rules-users at lists.jboss.org
>>>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>>>
>>>>
>>>> _______________________________________________
>>>> rules-users mailing list
>>>> rules-users at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>>
>>>
>>>
>>> _______________________________________________
>>> rules-users mailing list
>>> rules-users at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20140712/e0488986/attachment.html 


More information about the rules-users mailing list