camunda / connectors

Camunda Connectors
https://docs.camunda.io/docs/components/integration-framework/connectors/out-of-the-box-connectors/available-connectors-overview/
Apache License 2.0
39 stars 38 forks source link

Environment based dynamic URL for the RestConnector #2419

Open siteshkumarpati opened 4 months ago

siteshkumarpati commented 4 months ago

Is your feature request related to a problem? Please describe.

In Camunda-7, we had provisions where we can call the Java code to set the dynamic URLs, headers for the HTTP connector from the same task using expression. But as of now in Camunda-8, process can only read URL values from process variables, so we need to get the URLs, headers before calling the REST connector.

Describe the solution you'd like

I am able to use process variable for the URL in RestConnector (Camunda 8 RestConnector). My requirement is to decide the environment(QA,DEV,PROD) specific URL for the RestConnector at runtime. Is it possible to populate the URL for the RestConnector by calling java code? (This java code will help in deciding RestConnector URL by using Spring Profiles )

Describe alternatives you've considered

NA

Additional context

NA

sbuettner commented 4 months ago

Hi @siteshkumarpati and thanks for your request.

Did you try to make use of https://docs.camunda.io/docs/components/connectors/use-connectors/#using-secrets for the url you want to call?

Are you running on SaaS or are you using a self-managed instance?