Hi
I would like to user variable names that are declared in a java class, for external task topics for example, like
public static final String TIMEOUT = “timeoutTopic”;
and use this in in the model to avoid problems if we for some reasan want to change that topic name in the future.
I have the strings declared in a bean (wokerProperties) that camunda finds and the question is simply. Is it possible to use it in this way in the model? If so how would the expression look like.
I want to use it in the model like ${workerProperties.TIMEOUT} (this doesnt work by the way… )
Do I have to declare getMethod to be abe to use it? Like this?
public String getTIMEOUT() {
return TIMEOUT;
}
If I declare the get metod it works to use ${workerProperties.TIMEOUT}) but it is annoying to have to declare get methodes for all the statics. Is it the only/correct way?
Thanks
/Martin