getValue(audienceID, configData, arguments)
|
audienceID - ein Wert, der die Zielgruppen-ID angibt.
|
|
configData - ein Abbild mit Schlüssel/Wert-Paaren von Konfigurationsdaten, die der Aufruf benötigt.
|
|
arguments - die Argumente, die der Aufruf benötigt. Jedes Argument kann eine Zeichenfolge, ein Doppelzeichen, ein Datum oder eine Liste daraus sein. Ein Listenargument kann Nullwerte enthalten, aber eine Liste kann zum Beispiel nicht eine Zeichenfolge und ein Doppelzeichen enthalten.
|
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.
|