getValue(audienceID, configData, arguments)
|
audienceID - a value which identifies the audience ID.
|
|
configData - a map with key-value pairs of configuration data required by the callout.
|
|
arguments - the arguments required by the callout. Each argument can be a String, Double, Date, or a List of one of these. A List argument can contain null values, however, a List cannot contain, for example, a String and a Double.
|
public List<String> getValue(AudienceId audienceId, Map<String,
String> configurationData, Object... arguments) throws CalloutException
{
Long customerId = (Long) audienceId.getComponentValue("Customer");
// now query scoreQueryUtility for the credit score of customerId
Double score = scoreQueryUtility.query(customerId);
String str = Double.toString(score);
List<String> list = new LinkedList<String>();
list.add(str);
return list;
}
Copyright IBM Corporation 2014. All Rights Reserved.
|