Do we have any java class to update Process Property default value programmatically through groovy?
A default value for a process property is a part of a deployed component so there isn't a way to change the default value, but thats the whole point of a default value. If you feel that this would be changeable frequently and want to avoid redeploying, you should enable extensions for this process property. A default value should be, IMO, considered a failover for when someone forgot to explicitly set the value or inherit from the environment.
Are you trying to set the value at runtime in a process? - Process propertiesaccess with scripting
Or change an environments specific value? - If so, you can use the AtomsphereAPI - EnvironmentExtensions object
Thanks, Brian, the reason behind posting this query is, using the Boomi platform UI, we can create PP (label) and update the default value (by key) and save it, I am assuming that there should be a backend java class which can be used to do the same programmatically.
I have used the groovy scripts, to set/get PP, DPP etc.,
If there is an API/internal class to update the default value to PP, do let me know.
I was able to locate the model class for the process property however it only specifies the key/value and persist properties. I strongly believe you may be approaching your problem with an unreliable solution. Even if you can change the default value, if you want your consuming processes to use this default value you'd need to redeploy all of the processes that use this value. Therefore this is why the properties extensions are the best practices.
Thanks, Brian, I will review the props extensions if it helps. Appreciate your time and support.
Retrieving data ...