IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Services and service-related functions > Access external services with adapters > Configure and using adapters > IBM WebSphere Adapters > Adapter Toolkit > Troubleshooting and support
Defining properties of the attributes other than String
To define properties of the attributes other than Strings, for example Integers, perform these code changes:
- In the MTDSataDescription.java, change the getType() method as:
public String getType(String attrName) { BusinessObjectAttributeDefinition info = (BusinessObjectAttributeDefinition) ((MTSMetadataObject) getMetadataObject()) .getAttributes().get(attrName); return info.getType(); }- In MTSMetadataObject.java, add the following method:
private BusinessObjectAttributeDefinition createBODAttributeInfo (String type, String cardinality, boolean required) { BusinessObjectAttributeDefinition info = new BusinessObjectAttributeDefinition(); info.setType(type); info.setCardinality(cardinality); info.setRequired(required); return info; }- In MTSMetadataObject.java, change the getChildren() method for adding properties as:
attribs.put("Hello", createBODAttributeInfo("string", "1", false)); attribs.put("amount", createBODAttributeInfo("int", "1", false));