
Default converters and labels for client model objects
The client model objects implement the corresponding interfaces of the Business Process Choreographer API.
The List component and the Details component
operate on any bean. You can display all of the properties of a bean. However,
if you want to set the converters and labels that are used for the properties
of a bean, you must use either the column tag for the List component,
or the property tag for the Details component.
Instead of setting the converters and labels, you can define default converter
and labels for the properties by defining the following static methods. You
can define the following static methods:
static public String getLabel(String property,Locale locale);
static public com.ibm.bpc.clientcore.converter.SimpleConverter
getConverter(String property);
The following table shows the client model objects that implement the corresponding Business Flow Manager and Human Task Manager API classes and provide default labels and converter for their properties. This wrapping of the interfaces provides locale-sensitive labels and converters for a set of properties. The following table shows the mapping of the Business Process Choreographer interfaces to the corresponding client model objects.
| Business Process Choreographer interface | Client model object class |
|---|---|
| com.ibm.bpe.api.ActivityInstanceData | com.ibm.bpe.clientmodel.bean.ActivityInstanceBean |
| com.ibm.bpe.api.ActivityServiceTemplateData | com.ibm.bpe.clientmodel.bean.ActivityServiceTemplateBean |
| com.ibm.bpe.api.ProcessInstanceData | com.ibm.bpe.clientmodel.bean.ProcessInstanceBean |
| com.ibm.bpe.api.ProcessTemplateData | com.ibm.bpe.clientmodel.bean.ProcessTemplateBean |
| com.ibm.task.api.Escalation | com.ibm.task.clientmodel.bean.EscalationBean |
| com.ibm.task.api.Task | com.ibm.task.clientmodel.bean.TaskInstanceBean |
| com.ibm.task.api.TaskTemplate | com.ibm.task.clientmodel.bean.TaskTemplateBean |