<div dir="ltr">Fixed.<div><br></div><div>6.2.0-SNAPSHOT (master branch) has improved Expression handling.</div><div><br></div><div>6.1.0.Final will include the fix for this issue; but other aspects of Expression handling are not as developed as 6.2.0-SNAPSHOT.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 16 July 2014 16:40, Michael Anstis <span dir="ltr">&lt;<a href="mailto:michael.anstis@gmail.com" target="_blank">michael.anstis@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><a href="https://issues.jboss.org/browse/GUVNOR-2109" target="_blank">https://issues.jboss.org/browse/GUVNOR-2109</a><br>
<div><br></div><div>Working on a fix.</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">
On 16 July 2014 14:27, Sumit Dhaniya <span dir="ltr">&lt;<a href="mailto:sumitdhaniya@gmail.com" target="_blank">sumitdhaniya@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

I created a guided rule and when I open it again some conditions which I<br>
wrote using the --Text-- option from drop down are altered.<br>
It seems the issue is only with unmarshalling because condition remains<br>
unaltered in rdrl file until you save it again so everything is fine if you<br>
change it every time you make any change to the rule or save it.<br>
<br>
Below is the scenario to reproduce(use 6.1CR2) :-<br>
<br>
1) Made a Maven-ized JAR containing the following classes:<br>
<br>
package com.demo;<br>
<br>
import java.util.List;<br>
<br>
public class Foo {<br>
<br>
    private List myList;<br>
<br>
    public List getMyList() {<br>
        return myList;<br>
    }<br>
<br>
    public void setMyList( List myList ) {<br>
        this.myList = myList;<br>
    }<br>
}<br>
<br>
public class Bar {<br>
<br>
    private String myString;<br>
<br>
    public String getMyString() {<br>
        return myString;<br>
    }<br>
<br>
    public void setMyString( String myString ) {<br>
        this.myString = myString;<br>
    }<br>
}<br>
<br>
2) Uploaded JAR to the workbench&#39;s Artifact Repository<br>
<br>
3) Added a project dependency on this artifact<br>
<br>
4) Added an Import Suggestion for java.util.List<br>
<br>
5) Created a new Guided Rule<br>
<br>
6) Imported Foo,Bar and java.util.List (Config tab)<br>
<br>
7) Created the following rule:<br>
<br>
package org.mortgages;<br>
<br>
import java.lang.Number;<br>
import java.util.List;<br>
import org.anstis.MyListClass;<br>
<br>
rule &quot;r1&quot;<br>
  dialect &quot;mvel&quot;<br>
when<br>
 $foo : Foo()<br>
 Bar : Bar( myString == $foo.myList.get(1))<br>
then<br>
end<br>
<br>
8) Validate rule :- will be vaidated<br>
9) Save and close rule<br>
<br>
Now when rule will be opened again this get(1) will change to get moreover<br>
while creating rule get(index) method is not specified in dropdown so<br>
selected -- Text -- option to create the rule.<br>
<br>
DRL remains in valid format until overwritten in another save.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/condition-altered-while-unmarshalling-a-drl-to-guided-rule-tp4030375.html" target="_blank">http://drools.46999.n3.nabble.com/condition-altered-while-unmarshalling-a-drl-to-guided-rule-tp4030375.html</a><br>


Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>