[rules-users] DSL Translation

Wolfgang Laun wolfgang.laun at gmail.com
Mon Jan 28 15:09:06 EST 2013


The addition of ucfirst was motivated by the idea of converting nouns like
"car" to class names according to Java conventions ("Car").

Have you tried to use the field names to access attributes, which should be
possible when you switch to dialect "mvel"?

-W

On 28 January 2013 09:34, prashantmirajkar at gmail.com <
prashantmirajkar at gmail.com> wrote:

> In my project coding standard is as follows
> class members names as nameWithEachWordWithFirstLetterUpperCase
>
> and related getters and setters have
> getNameWithEachWordWithFirstLetterUpperCase and
> setNameWithEachWordWithFirstLetterUpperCase respectively.
>
> While using the DSL unlike ucfirst which converts first letter to upper
> case
> and rest to lower case, I want to have only first letter converted to upper
> case leaving other letters as they are.
>
> How can it be achieved? I am using drools 5.3.3
>
> thanks in advance,
>
> Prashant
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/DSL-Translation-tp4021842.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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20130128/f397a96e/attachment.html 


More information about the rules-users mailing list