Hi All , <br><br>I am just trying to write a simple rule but not sure how can i write it , Please help me as i am new to drools and still in the learning phase .<br><br>I have a below Fact&nbsp; with three fields<br><br>Person <br>
<br>&nbsp;&nbsp;&nbsp; firstName <br>&nbsp;&nbsp;&nbsp; lastName<br>&nbsp;&nbsp;&nbsp; fullName<br><br><br>Now i want to assign fullName = firstName + lastName which i am not able to find out how can i do that.<br><br>I am able to define the <b>when </b>part using guided editor but able to define <b>then </b>part , Please help&nbsp; <br>
<br><b>rule &quot;PersonRules&quot;<br>&nbsp;&nbsp;&nbsp; dialect &quot;mvel&quot;<br>&nbsp;&nbsp;&nbsp; when<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; p : Person( firstName != &quot;&quot; &amp;&amp; lastName != &quot;&quot; )<br>&nbsp;&nbsp;&nbsp; then</b><br><br>Thanks,<br>Ashish<br>