Do you have an example that I could use by any chance? I'm having a hard time trying to get that point, I always get a "Command Execution Failed: java.lang.Throwable" error.
I managed to find this stuff by myself, not sure it's the proper way.
# The following seems to load the default job policy
blcli_execute RoutingPolicy findJobRoutingPolicyByDBKey DBKey:SRoutingPolicyModelKeyImpl:3-2000183
# Now trying to get a "testfred" job routing rule in context
blcli_execute JobRoutingPolicy findRoutingRuleByName testfred
# and then whatever I try, I can't get to JobRoutingRule level namespace to play with the rule.
Am I approaching this the wrong way?
RoutingPolicy.addTargetToJobRoutingRule, RoutingPolicy.clearDefaultTargets ?
i don't know if there's a way to force the cache reload.
I do not see a way to acquire the DB Key of the routing policy in order to store it as an object. Can you provide a code snippet of how you were able to manipulate a routing policy / job routing rule?
do a RoutingPolicy.findAll, iterate through each object, do a 'getName' if it matches then do the getDBKey ?
I can make that work, I will update with the code, once I test it out