Hi Mohan,

Thanks for the quick response.

Best Regards.

On Thu, Oct 30, 2014 at 3:57 AM, Mohanadarshan Vivekanandalingam <
[email protected]> wrote:

>
>
> On Thu, Oct 30, 2014 at 1:03 AM, Madhawa Gunasekara <[email protected]>
> wrote:
>
>> Hi All,
>>
>>
> Hi Madhawa,
>
>
>> I'm working on a traffic analysis project. I just need to send traffic
>> alert messages to subscribers. But email addresses vary according to
>> their subscribed location.
>>
>> As per my understanding the email address should be fixed when using a
>> CEP email output adapter.
>>
>> How can I use WSO2 CEP output email adapter to carry through my problem?
>>
>
> E-mail addresses are not fixed in the email output adaptor. In CEP there
> is a option where you can define a single/many event attributes as a value
> in eventformatter. Then if are you sending the email address in the event,
> then based on the event attribute you can send a mail.
>
> eg : let's say below is stream that output by the execution plan  ,
>
> subsciberStream ( name String , address String , email String , topic
> String )
>
> Then you can define the email address and subject as below in the event
> formatter,
>
> email address - *{{email}}*
> email subject - *{{topic}}*
>
> Thanks,
> Mohan
>
>
>
>
>>
>>
>>
>> Thanks.
>>
>> --
>> *Madhawa Gunasekara*
>> Software Engineering Intern
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 719411002
>>
>>
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *V. Mohanadarshan*
> *Software Engineer,*
> *Data Technologies Team,*
> *WSO2, Inc. http://wso2.com <http://wso2.com> *
> *lean.enterprise.middleware.*
>
> email: [email protected]
> phone:(+94) 771117673
>



-- 
*Madhawa Gunasekara*
Software Engineering Intern
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 719411002
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to