Parameters configuration(Java)

When I define a workflow, I define many parameters, such as HeartbeatTimeout and StartToCloseTimeout. I do not want to define specific values for these parameters. Instead, I read some configuration files to do so. I use the @Value annotation and return null. How can I do this?

One way is to do it via WorkflowImplementationOptions, see sample here.

Another way could be to pass these values as workflow input. Another could be to invoke local activity (which can be a @Component bean) that can get and return these values from your app properties.

You cannot directly use @Value in workflow code.