Referencing process variables in connector configuration

Hello friends,

Is it possible to leverage existing process variables in Camunda 8 connector configuration settings? For example, say I am using the REST Outbound connector and would like to reference an existing process variable as part of the URL such as:

http://localhost/api/chart-items/{{some-process-variable}}

How do I go about accomplishing this? I have tried these formats to no avail:

Here is a diagram of my configuration

Camunda 8 uses FEEL

You’ll have to structure your fx value differently… Concatenate the string literal (base URL) with the item ID

So it becomes something along the lines of:
="http://192.168.1.83:8080/api/cart-items/"+cartitem.itemID

3 Likes

Thank you!

Your proposal worked with a slight modification as follows:

fx = "http://192.168.1.83:8080/api/cart-items/"+ string(cartitem.itemID)

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.