Use environment variable into process

Hi,
I want to set a REST call from one process. But I want that URL depends on environment where it is deployed. is there any way to get environment variable inside a process ?

I’m looking for something like execution.getEnvVariable(“my_var”)

Hi,
I would create the URL as an expression. You can add your custom functions to expressions by implementing ExpressionFunctionDelegate and adding implementation to engine configuration.
More info:
https://www.flowable.org/docs/userguide/index.html#expressionsFunctions

For usage examples check the source code.

Regards
Martin

1 Like

Thank you for your reply