Skip to Content
author's profile photo Former Member
Former Member

Create Service CAF for send email

Friends,

I've to create a service-CAF that send email.

I'll disable the default of BPM email notifications and put one WS for do it.

Does anyone have any experience with it?

[]´

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Aug 13, 2009 at 08:41 PM

    Hi Tulio,

    Why not implementing a simple JEE5 web service for this? AFAIK there is no need to warp this into CAF as the CE stack would also allow you doing so with a simple POJO + annotations.

    Within your implementation you could access the standard java.mail APIs. Simply make sure that you set its properties accordingly in the java mail service setttings of the engine (NWA > Configuration Management > Infrastructure > Java System Properties - if I recap this correctly).

    So in theory (I did not do it myself yet) this should be a "no-brainer" ๐Ÿ˜Š

    As soon as it is deployed and set up correctly on the CE stack you could access the WSDL via the WS navigator (or via the SOA configuration), import it to your process project and make use of it in automated activities.

    -


    Another - interesting - option would be using the EJB functions for this. I would imagine modelling the interface this way:

    boolean sendMail(String to, String title, String subject, String body)

    You could then use this in some (input or output) mapping and pass in some values. In addition the function will return a boolean (or maybe a String) that could tell you the outcome of sending out the mail (so that you know if it worked technically - this does not necessarily mean that the mail reached the recipient - that's depending on infrastructure and SPAM filters ๐Ÿ˜‰

    The more I type the more I like this idea - maybe I find two minutes to write some short document for this ๐Ÿ˜Š

    Cheers,

    Martin

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.