TrackStudio Enterprise 3.5
Example 11

To get the value of the task- or workflow-based custom field Order Availability:

String availability = AdapterManager.getInstance().getSecuredUDFAdapterManager()
     .getTaskUDFValue(sc,task.getId(),"Order Availability");
if (availability == null)
   return "Unknown";
else
   return availability;

To get the value of the user-based custom field Address:

String address = AdapterManager.getInstance().getSecuredUDFAdapterManager()
     .getUserUDFValue(sc,task.getSubmitter().getId(),"Address");
if (address == null)
   return "Unknown address";
else
   return address;

Associated custom field properties:

Property 
Value 
Type 
String