The addition of ucfirst was motivated by the idea of converting nouns like &quot;car&quot; to class names according to Java conventions (&quot;Car&quot;). <br><br>Have you tried to use the field names to access attributes, which should be possible when you switch to dialect &quot;mvel&quot;? <br>
<br>-W<br><br><div class="gmail_quote">On 28 January 2013 09:34, <a href="mailto:prashantmirajkar@gmail.com">prashantmirajkar@gmail.com</a> <span dir="ltr">&lt;<a href="mailto:prashantmirajkar@gmail.com" target="_blank">prashantmirajkar@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">In my project coding standard is as follows<br>
class members names as nameWithEachWordWithFirstLetterUpperCase<br>
<br>
and related getters and setters have<br>
getNameWithEachWordWithFirstLetterUpperCase and<br>
setNameWithEachWordWithFirstLetterUpperCase respectively.<br>
<br>
While using the DSL unlike ucfirst which converts first letter to upper case<br>
and rest to lower case, I want to have only first letter converted to upper<br>
case leaving other letters as they are.<br>
<br>
How can it be achieved? I am using drools 5.3.3<br>
<br>
thanks in advance,<br>
<br>
Prashant<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/DSL-Translation-tp4021842.html" target="_blank">http://drools.46999.n3.nabble.com/DSL-Translation-tp4021842.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">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>