# HttpActivityBehaviorImpl and HttpRequest using dots in variable names

**URL:** https://forum.flowable.org/t/httpactivitybehaviorimpl-and-httprequest-using-dots-in-variable-names/1442
**Category:** Uncategorized
**Created:** [January 14, 2018, 5:05pm UTC](https://forum.flowable.org/t/httpactivitybehaviorimpl-and-httprequest-using-dots-in-variable-names/1442 "2018-01-14T17:05:55Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ruzkant](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@ruzkant](https://forum.flowable.org/u/ruzkant)
#### Post date: [January 14, 2018, 5:05pm UTC](https://forum.flowable.org/t/httpactivitybehaviorimpl-and-httprequest-using-dots-in-variable-names/1442/1 "2018-01-14T17:05:55Z")

</div>

The Http task sets up many variables such as responseStatusCode with a dot notation.

`execution.setVariable(request.getPrefix() + ".responseStatusCode", response.getStatusCode());`

Using dots in variable names makes life hard in JUEL expressions. This could have been solved if the default prefix itself included the dot, then putting a custom result prefix without it could have helped, but now there is now way to avoid it.

I couldn’t find a way to escape the dot in UEL, so I needed to get the variables from the execution object. (Any other suggestions welcome)

My feeling is that it is inconvenient enough to warrant changing the implementation. Other thoughts?

UPDATE:  
Or alternatively and perhaps better is to have the variables be part of a javabean so that fields are naturally accessed with EL’s dot notation.

---

<div class="post-metadata">

### Author: ![tijs](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@tijs](https://forum.flowable.org/u/tijs)
#### Post date: [January 15, 2018, 12:32pm UTC](https://forum.flowable.org/t/httpactivitybehaviorimpl-and-httprequest-using-dots-in-variable-names/1442/2 "2018-01-15T12:32:29Z")

</div>

Very true, we should definitely change this and not use notation. Will make sure we change this asap.

Best regards,

Tijs

---

<div class="post-metadata">

### Author: ![ruzkant](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@ruzkant](https://forum.flowable.org/u/ruzkant)
#### Post date: [January 15, 2018, 2:29pm UTC](https://forum.flowable.org/t/httpactivitybehaviorimpl-and-httprequest-using-dots-in-variable-names/1442/3 "2018-01-15T14:29:28Z")

</div>

Thanks, should I add a github issue?

---

<div class="post-metadata">

### Author: ![tijs](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@tijs](https://forum.flowable.org/u/tijs)
#### Post date: [January 15, 2018, 3:13pm UTC](https://forum.flowable.org/t/httpactivitybehaviorimpl-and-httprequest-using-dots-in-variable-names/1442/4 "2018-01-15T15:13:15Z")

</div>

Already fixed it: [https://github.com/flowable/flowable-engine/commit/d7554ebb572caa7e66933852362610041baefecc](https://github.com/flowable/flowable-engine/commit/d7554ebb572caa7e66933852362610041baefecc)

Thanks for raising the issue here on the forum!

Best regards,

Tijs

---

<div class="post-metadata">

### Author: ![ruzkant](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@ruzkant](https://forum.flowable.org/u/ruzkant)
#### Post date: [January 15, 2018, 3:53pm UTC](https://forum.flowable.org/t/httpactivitybehaviorimpl-and-httprequest-using-dots-in-variable-names/1442/5 "2018-01-15T15:53:33Z")

</div>

Looks good, thanks for the quick response!
