cancel
Showing results for 
Search instead for 
Did you mean: 

Message start event based on E-mail parse

potitius
Champ in-the-making
Champ in-the-making
Hello Community,

I am trying to start an event based on E-mail data that I will receive.

May be Message start event is good path for that, can anybody help me with this stuff ?
5 REPLIES 5

jbarrez
Star Contributor
Star Contributor
You will need a listener for the email that starts the process. Doesn't matter if you use a regular start for this or a message based event. The message based event does not map to an email, btw.

Using Camel here would be an option.

potitius
Champ in-the-making
Champ in-the-making
Thank you for your help @jbarrez

What I actually want to achieve is to extract from a confirmation mail the word " Approve " or " Reject ".

I created an execution listener within a Receive Task that will download Emails.
Can you help me to parse the email ?

<java>

public class MyEmailListener implements ExecutionListener{
public void execute(DelegateExecution execution) throws Exception
{

while(true)
{

downloadEmails("imap", "imap.gmail.com", "993", "username@gmail.com", "pwd", delegateexecution);
}
}

}
</java>

trademak
Star Contributor
Star Contributor
Parsing emails is not within the scope of what we provide with Activiti.
But there are plenty code examples available when doing a google search I think.

Best regards,

forschungsstude
Champ in-the-making
Champ in-the-making
Hello,
is there now a possibility to parse received e-Mails?

Is it possible to start a process with an e-Mail? (usergiude –> "Message Start Event"?)

Regards,
Sabine

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Sabine,

is there now a possibility to parse received e-Mails?
Yes, but you have to implement it by yourself.

Is it possible to start a process with an e-Mail?
Yes you have to send this message from your own code which can connect to e-mail server and parse emails.

Regards
Martin