replaced deprecated sdk methods with recommended methods
@@ -5,6 +5,7 @@ import org.streampipes.model.graph.DataSinkDescription;
import org.streampipes.model.graph.DataSinkInvocation;
import org.streampipes.pe.sinks.standalone.config.ActionConfig;
import org.streampipes.sdk.builder.DataSinkBuilder;
+import org.streampipes.sdk.builder.StreamRequirementsBuilder;
import org.streampipes.sdk.extractor.DataSinkParameterExtractor;
import org.streampipes.sdk.helpers.EpRequirements;
import org.streampipes.sdk.helpers.Labels;
@@ -25,9 +26,12 @@ public class EmailController extends StandaloneEventSinkDeclarer<EmailParameters
return DataSinkBuilder.create("email_sink", "Email Notification", "Email bot to send notifications emails")
.category(DataSinkType.NOTIFICATION)
.iconUrl(ActionConfig.getIconUrl("email_senke_icon"))
- .requiredTextParameter(TO_EMAIL_ADRESS, "To", "Receiver E-mail address")
- .requiredTextParameter(EMAIL_SUBJECT, "Subject", "The subject of the email")
- .requiredPropertyStream1(EpRequirements.anyProperty())
+ .requiredTextParameter(Labels.from(TO_EMAIL_ADRESS, "To", "Receiver E-mail address"))
+ .requiredTextParameter(Labels.from(EMAIL_SUBJECT, "Subject", "The subject of the email"))
+ .requiredStream(StreamRequirementsBuilder
+ .create()
+ .requiredProperty(EpRequirements.anyProperty())
+ .build())
.requiredHtmlInputParameter(Labels.from(EMAIL_CONTENT, "Content", "Enter the email text. You can" +
"use place holders like #fieldName# to add the value of a stream variable."))
.supportedFormats(SupportedFormats.jsonFormat())
