This object is in archive! 

do calculation on attribute then use in body http request

Paul Baka shared this question 6 years ago
Need Answer

hello,

is it possible to do a calculation on an attribute then use it in the body of a http request?

Such as:


{${attributes.get("959dfdd5-1a89-4942-a6d3-e880018de535", "com.zipato.cluster.MeterMeter", "value1")} * 1.5}

Replies (1)

photo
1

Do you mean do the calculation *in* the HTTP request?


You could certainly do the calculation in a rule, store the result in a variable, and then reference the variable in the HTTP request - providing that your licence allows you to do that. I recall that using variables in HTTP requests may be a "pro" feature.

Leave a Comment
 
Attach a file