Camunda Placeholder

Hi All,

In my service task, i have url as variable. I want assign variable value from Property file. How could achieve it. Please share sample if anyone having it.

Thanks,
Subramanian

Hi @t.subramanian80

To help you with your issues, i’m going to need more details about your current setup. Can you answer the following Questions:

  1. Add the version software you’re asking about (e.g. Camunda BPM 7.13)
  2. Describe your setup (e.g. Spring Boot / Tomcat etc.)
  3. What database are you using, including version and driver.

Hi Niall,

Thanks … I updated it

  1. Add the version software you’re asking about (e.g. Camunda BPM 7.13)
    7.14
  2. Describe your setup (e.g. Spring Boot / Tomcat etc.)
    SpringBoot
  3. What database are you using, including version and driver.
    mysql 5.7

Is the properties file inside the spring boot project?

yes. We want use placeholder inside bpmn variable like url={mw.getinv.url}

application.properties (any property)

mw.getinv.url=http://localhost:8080/inv/message

Thanks

If you’re using spring boot you can just use the @Value function.
A JavaDelegate can access the field you want through that and then set the variable in the process definition using

delegateExecution.setVariable("popertyName", propValue);

With JavaDelegate sure … we can get it. But We prefer directly to get placeholder value from BPMN itself. Looks it is not possible directly. So i have use either java delegate or spring injects object.getValue(“mw.getinv.url”). Please let me know any other options.

Thanks for your quick reply :slight_smile: !!!..