Any Other ways to achieve this?

On Thu, Mar 24, 2016 at 4:48 PM, Bryan Bende <bbe...@gmail.com> wrote:

> I think the problem is that all attributes are actually Strings
> internally, even after calling toNumber() that is only temporary while the
> expression language is executing.
>
> So by the time it gets to AttributesToJson it doesn't have any information
> about the type of each attribute and they all end up as Strings. I think we
> would have to come up with a way to pass some type information along to
> AttributesToJson in order to get something other than Strings.
>
> -Bryan
>
>
> On Thu, Mar 24, 2016 at 3:30 PM, Madhukar Thota <madhukar.th...@gmail.com>
> wrote:
>
>> Hi i am trying to convert string value to integer in UpdateAtrributes
>> using toNumber like this
>>
>>
>> ${http.param.t_resp:toNumber()}  where http.param.t_resp = "132"
>>
>> but when the fileattribute pushed to Attributetojson processor , i am
>> stilling seeing it as string. Am i am doing something wrong? and also how
>> can i convert string to float?
>>
>>
>>
>>
>>
>

Reply via email to