Bonita Conector using Spring Boot
Hi,
I'm trying to create a Bonita Conector (using Bonita connector archetype) but I can't use the @Value from Spring Boot (returns null).
The implementation that I'm using is:
Conector.properties:
bpm.url=${BPM_URL:http://docker.localhost}
Class:
@Value("${bpm.url}" private String url;
pom.xml:
org.springframework spring-context 5.2.9.RELEASE ; org.springframework spring-core 5.2.9.RELEASE
When I try, for example, print the value of "url" it returns null. Can someone help me?
Thanks in advance
Diana
Comments
Hi Romain, thanks for your help! Is there another option for the problem (without using Spring Boot)? The problem is: I'm using an external API for a project and I don't pretend to have in code the username and password to create a valid token to do all the operations that I need.
Thanks,
Diana
Username and password should be connector input in the connector definition. Then use a parameter when configuring the connector in a process