Default Value JS : set the category with the label
Accepted answer
Please consider reading https://jazz.net/library/article/1093 Lab 5 (and lab 4 is also interesting).
To set filed against, you have to return the UUID. There is no way around it. If you want to set it in JavaScript you have to, because you have very few API and nothing that helps you to iterate the existing Categories, store the UUID to return in the process configuration.
You could follow http://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/ and create a a default value provider. This gives you more access, includiung, I believe, access to all the categories as Objects, where you can look up the label and return the UUID for the one you want to pick.
To set filed against, you have to return the UUID. There is no way around it. If you want to set it in JavaScript you have to, because you have very few API and nothing that helps you to iterate the existing Categories, store the UUID to return in the process configuration.
You could follow http://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/ and create a a default value provider. This gives you more access, includiung, I believe, access to all the categories as Objects, where you can look up the label and return the UUID for the one you want to pick.