Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Process Manager (Stardust) » Camel Trigger, email and headers
icon5.gif  Camel Trigger, email and headers [message #1404504] Sat, 02 August 2014 12:25 Go to next message
gianni Mising name is currently offline gianni Mising nameFriend
Messages: 5
Registered: July 2009
Junior Member
Hi all,

I am trying to create a process (in the eclipse modeler) that fetches a mail and displays its content and header data.

I have created a camel trigger that fetches the mail (the mail trigger does not support the required authentication).

camel trigger, Route:
<from uri="pop3s://pop.host.com?username=mail@host.com&amp;password=password&amp;connectionTimeout=5000"/>

<to uri="ipp:direct"/>


In the parameter mappings I get the option of mapping the message. Doing this I can access the mail body and display it in the next activity.

I would somehow expect to be able to access the header in a similar way, but have failed. In the data mapping only "message" is offered as Parameter..

How would I do this correctly?

Thanks for your help,

Kurt

[Updated on: Sat, 02 August 2014 12:25]

Report message to a moderator

Re: Camel Trigger, email and headers [message #1404614 is a reply to message #1404504] Mon, 04 August 2014 13:35 Go to previous messageGo to next message
Andreas Mueller is currently offline Andreas MuellerFriend
Messages: 12
Registered: October 2011
Junior Member
Hi Kurt,

what Eclipse Stardust version did you use? Also, are you working with the Eclipse Process Modeler or the browser-based one?

Regards,

Andreas
Re: Camel Trigger, email and headers [message #1404630 is a reply to message #1404614] Mon, 04 August 2014 15:00 Go to previous messageGo to next message
gianni Mising name is currently offline gianni Mising nameFriend
Messages: 5
Registered: July 2009
Junior Member
Hi,

Sorry I missed putting that in.

I am using the eclipse modeler based on the version currently available on the update sites for eclipse luna.

Kurt

Quote:

Eclipse Process Manager - 3rd-Party Dependencies 2.0.0.v20140611-1022 org.eclipse.stardust.ide.3rdparty-feature.feature.group Eclipse Stardust
Eclipse Process Manager - Core Modeling 2.0.0.v20140611-1022 org.eclipse.stardust.modeling.core-feature.feature.group Eclipse Stardust
Eclipse Process Manager - Documentation 2.0.0.v20140611-1022 org.eclipse.stardust.documentation.documentation-feature.feature.group Eclipse Stardust
Eclipse Process Manager - Engine Dependencies 2.0.0.v20140611-1022 org.eclipse.stardust.modeling.engine-feature.feature.group Eclipse Stardust
Eclipse Process Manager - Message Modeling 2.0.0.v20140611-1022 org.eclipse.stardust.modeling.messages-feature.feature.group Eclipse Stardust
Eclipse Process Manager - Process Model 2.0.0.v20140611-1022 org.eclipse.stardust.modeling.model-feature.feature.group Eclipse Stardust
Eclipse Process Manager - Simulation 2.0.0.v20140611-1022 org.eclipse.stardust.modeling.simulation-feature.feature.group Eclipse Stardust
Eclipse Process Manager - Web Tools Integration 2.0.0.v20140611-1022 org.eclipse.stardust.modeling.wst-feature.feature.group Eclipse Stardust

[Updated on: Mon, 04 August 2014 20:21]

Report message to a moderator

Re: Camel Trigger, email and headers [message #1404683 is a reply to message #1404614] Tue, 05 August 2014 05:33 Go to previous messageGo to next message
Vikash Pandey is currently offline Vikash PandeyFriend
Messages: 12
Registered: October 2011
Junior Member
Kurt,
To get data out of headers of an incoming email. You just need to ensure that you create Parameters with the same name as in header. For example if i need to fetch Subject and From, i would create 2 parameters with name "Subject" and "From" and then bind them to respective model data that will hold the values of the header Subject and From.

Please see attached xpdl.

-Vikash
Re: Camel Trigger, email and headers [message #1404687 is a reply to message #1404683] Tue, 05 August 2014 05:54 Go to previous messageGo to next message
gianni Mising name is currently offline gianni Mising nameFriend
Messages: 5
Registered: July 2009
Junior Member
Thanks, I see your model... I think I am somehow failing in the basics?

How do I create additional parameters on the camel trigger?

I only have "message" available as default... ?

Kurt

Update: I have deployed your model, and it works as expected. Still don't see how to get there though.. Rolling Eyes

[Updated on: Tue, 05 August 2014 06:38]

Report message to a moderator

Re: Camel Trigger, email and headers [message #1405761 is a reply to message #1404504] Fri, 08 August 2014 05:50 Go to previous messageGo to next message
gianni Mising name is currently offline gianni Mising nameFriend
Messages: 5
Registered: July 2009
Junior Member
index.php/fa/18827/0/

Screenshot of camel configuration - only drop-down is available

Where would I add additional parameters?

Thanks,

Kurt
Re: Camel Trigger, email and headers [message #1410602 is a reply to message #1405761] Thu, 21 August 2014 07:08 Go to previous message
Srinivasan Iyer is currently offline Srinivasan IyerFriend
Messages: 36
Registered: October 2011
Member
Kurt,
To see additional parameters you would have to use the browser modeler. The Eclipse modeler only shows the single "message" parameter. If you would like to continue using the Eclipse modeler, you can check out the following article https://wiki.eclipse.org/Stardust/Knowledge_Base/Integration/Camel/Email_Trigger_with_Process_Attachments and adapt it for use with a Stardust Camel Trigger.

-Srini
Previous Topic:Broken Link for self-learning training "Department Concept"
Next Topic:Reporting documentation bugs/issues
Goto Forum:
  


Current Time: Tue Mar 19 09:27:10 GMT 2024

Powered by FUDForum. Page generated in 0.02328 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top