Request url in http task

I want to get a part pf my request url from a variable, I mean something like this:

flowable:field name=“requestUrl”>
flowable:expressionhttp://test01.com/bpmn/api/v2/processes/startable/+${username}
</flowable:expression>
</flowable:field>

How should I do this?

Thank you in advance.

could anyone please answer my question?

The way I’d approach this is to have Script task (Groovy) before the Http task. In the script task, I’d resolve the entire URL and not just a part of it. In the end of the actual script, you do execution.setVariable(“myurl”, url) and reference the constructed URL throughout the process with ${myurl}. In the Http task respectively, it’s enough to then set ${myurl} for Request URL property.

1 Like