RulePoint
- RulePoint 6.1.2
- All Products
@Service(name="TemperatureService", displayName = "Temperature Source", description = "This is a Sample Source Service", configClassName = "com.informatica.sdk.samples.sources.SampleListenerSource", serviceType = ServiceType.SOURCE) public class TemperatureSourceService extends AbstractPluggableSchedulableSource {
private String city; @ServiceProperty( name="city", displayName="City", description="Enter the name of the city and it will return the City Temperature", propertyEditor="com.informatica.cep.shared.beans.propertyeditors.TextEditor", optional=false, order=1) public String getCity() { return city; } public void setCity(String city) { this.city = city; }
@Override public Map<String, Object> execute() { Map<String, Object> event = new HashMap<String, Object>(); event.put("temperature", "78"); event.put("city", city); getPublisher().publishMessage(event); return null; }