List Info

Thread: the "not in" expression does not work...have u ever had this issue before?




the "not in" expression does not work...have u ever had this issue before?
user name
2008-04-09 03:32:42
 
Hi there!
 
I am using ; a svn-built version of drools-core.jar and drools-decisiontable.jar runtime lib (3rd March 2008).
 
I have got the following "Decision table"; generated row:
 

#From row number: 25

rule "Otherwise_25"

no-loop true

ruleflow-group "Convert"

when

  cw:ContractWrapper(mycontract.serviceDetail.name not in ("STRING 1", "STRING 2", "STRING 3", "STRING 4", "STRING 5", null))

then

  ...

end

 The point is... despite of a ContractWrapper fact that DOES NOT encapsulate a

 ;nested 'name' whose value is in the above set, the rule does not fire anyway.

For instance, if i have got a fact (in working memory) cw1 of class ContractWrapper with cw1.mycontract.serviceDetail.name = "STRING 6",

i expect the rule "Otherwise_25" to fire BUT IT ACTUALLY DOES NOT!

Furthermore if i omit the 'not' operator and i insert a fact cw2 with cw2.mycontract.serviceDetail.name = "STRING 2",

the RULE DOES fire!

For this reason there should be something wrong with the "not" operator.

but I do not know what exactly!

By the time the rule is generated from an .xls decision table

i really would not express the "otherwise" rule simply using

a sequence of "!=" and "and" operators (which would be a workaround)

.... If I did so the decisiontable would appear "too technical" and

not suitable for a business user.

Have u ever had this issue before?

I have also tried to omit the "null" value from the set but thait is not

the problem.

Please let me know.

Massi

Re: the "not in" expression does not work...have u ever had this issue before?
user name
2008-04-09 07:49:50

   No, I did not had this problem before. Can you please open a JIRA and add a self contained test to reproduce the problem?

   Thanks,
      ;  Edson

2008/4/9 mmquelo massi < mmquelogmail.com">mmquelogmail.com>:
 
Hi there!
 
I am using ; a svn-built version of drools-core.jar and drools-decisiontable.jar runtime lib (3rd March 2008).
 
I have got the following "Decision table"; generated row:
&nbsp;

#From row number: 25

rule "Otherwise_25&quot;

no-loop true

ruleflow-group "Convert"

when

  cw:ContractWrapper(mycontract.serviceDetail.name not in ("STRING 1&quot;, "STRING 2&quot;, "STRING 3&quot;, "STRING 4&quot;, "STRING 5&quot;, null))

then

  ...

end

&nbsp;The point is... despite of a ContractWrapper fact that DOES NOT encapsulate a

 ;nested 'name&#39; whose value is in the above set, the rule does not fire anyway.

For instance, if i have got a fact (in working memory)&nbsp;cw1 of class ContractWrapper with cw1.mycontract.serviceDetail.name = "STRING 6",

i expect the rule "Otherwise_25&quot; to fire BUT IT ACTUALLY DOES NOT!

Furthermore if i omit the 'not&#39; operator and i insert a fact cw2 with cw2.mycontract.serviceDetail.name = "STRING 2",

the RULE DOES fire!

For this reason there should be something wrong with the "not&quot; operator.

but I do not know what exactly!

By the time the rule is generated from an .xls decision table

i really would not express the "otherwise" rule simply using

a sequence of "!=&quot; and "and&quot; operators (which would be a workaround)

.... If I did so the decisiontable would appear "too technical&quot; and

not suitable for a business user.

Have u ever had this issue before?

I have also tried to omit the "null" value from the set but thait is not

the problem.

Please let me know.

Massi


_______________________________________________
rules-users mailing list
rules-userslists.jboss.org">rules-userslists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




--
Edson Tirelli
JBoss Drools Core Development
Office: +55 11 3529-6000
Mobile: +55 11 9287-5646
JBoss, a division of Red Hat www.jboss.com
Re: the "not in" expression does not work...have u ever had this issue before?
user name
2008-04-11 03:09:45
 
Sorry Guys,
&nbsp;
It was my fault!
 
The "not in" sugar operator DOES WORK!!!
 
I had a problem with the decision table values...
 
So...never mind. No JIRAs for it.
&nbsp;
Thank You anyway.
 
Massi

On Wed, Apr 9, 2008 at 2:49 PM, Edson Tirelli < tirellipost.com">tirellipost.com&gt; wrote:

 &nbsp; No, I did not had this problem before. Can you please open a JIRA and add a self contained test to reproduce the problem?

   Thanks,
&nbsp; &nbsp;   ;  Edson

2008/4/9 mmquelo massi < mmquelogmail.com" target="_blank">mmquelogmail.com>:
 
Hi there!
 
I am using ; a svn-built version of drools-core.jar and drools-decisiontable.jar runtime lib (3rd March 2008).
 
I have got the following "Decision table"; generated row:
&nbsp;

#From row number: 25

rule "Otherwise_25&quot;

no-loop true

ruleflow-group "Convert"

when

  cw:ContractWrapper(mycontract.serviceDetail.name not in ("STRING 1&quot;, "STRING 2&quot;, "STRING 3&quot;, "STRING 4&quot;, "STRING 5&quot;, null))

then

  ...

end

&nbsp;The point is... despite of a ContractWrapper fact that DOES NOT encapsulate a

 ;nested 'name&#39; whose value is in the above set, the rule does not fire anyway.

For instance, if i have got a fact (in working memory)&nbsp;cw1 of class ContractWrapper with cw1.mycontract.serviceDetail.name = "STRING 6",

i expect the rule "Otherwise_25&quot; to fire BUT IT ACTUALLY DOES NOT!

Furthermore if i omit the 'not&#39; operator and i insert a fact cw2 with cw2.mycontract.serviceDetail.name = "STRING 2",

the RULE DOES fire!

For this reason there should be something wrong with the "not&quot; operator.

but I do not know what exactly!

By the time the rule is generated from an .xls decision table

i really would not express the "otherwise" rule simply using

a sequence of "!=&quot; and "and&quot; operators (which would be a workaround)

.... If I did so the decisiontable would appear "too technical&quot; and

not suitable for a business user.

Have u ever had this issue before?

I have also tried to omit the "null" value from the set but thait is not

the problem.

Please let me know.

Massi


_______________________________________________
rules-users mailing list
rules-userslists.jboss.org" target="_blank">rules-userslists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




--
Edson Tirelli
JBoss Drools Core Development
Office: +55 11 3529-6000
Mobile: +55 11 9287-5646
JBoss, a division of Red Hat www.jboss.com
_______________________________________________
rules-users mailing list
rules-userslists.jboss.org">rules-userslists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )