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 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
To help you with your issues, i’m going to need more details about your current setup. Can you answer the following Questions:
Hi Niall,
Thanks … I updated it
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 !!!..