Skip to main content
Solved

FME Server 2015: Use Email to start workbench

  • July 13, 2015
  • 4 replies
  • 14 views

Hello, I saved some information and coordinates to a PostgreSQL-DB from a php-form. beside this process the website will send an email to the fme server 2015 to start a workbench which perform some clipping with the coordinates and also save some more information to the postgresql. finaly the workbench send me an email for success. Thats the plan.

 

 

I didn't understand how to configure the fme server to start the workbench after receiving the email?

 

Thanks for any advice.

 

Lencer

Best answer by david_r

Hi

 

 

When you create your workspace just point your reader to any old text file, it doesn't matter which. When your workspace is triggered by FME Server, the text file contents will be automatically replaced with the email contents.

 

 

Here is a tutorial that pretty much covers your question: https://knowledge.safe.com/articles/How_To/Receiving-email-Part-1-Setting-up-a-topic-and-an-email-address

 

 

David
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

david_r
Celebrity
  • July 13, 2015
Hi

 

 

First you define a Publication (EMail) that publishes to a Topic whenever an email is received. I defined the topic SAMPLE_TOPIC for the screenshot below.

 

 

Then you publish your workspace to FME Server with the Notification Service linked to the topic that is triggered when the email arrives:

 

 

 

 

The "Notification data reader" is the one that will contain your email when your workspace is triggered by the topic. You can use something like the TEXTLINE reader for this. Make sure to set "Read whole file at once" on your reader to get one feature containing the entire mail message, otherwise you'll get one feature per line of text.

 

 

David

  • Author
  • July 14, 2015
Hi David, thx for your efforts.

 

 

I didn't understand the part about the TEXTLINE Reader (FME 2015 its called "Text File Reader", i think so). If i try to plug in the reader I have to define the Dataset. I don't know which Dataset I have to use. Any textfile? Or a special formated Textfile?

 

 

Greetings Lencer

fmelizard
Safer
Forum|alt.badge.img+21
  • Safer
  • July 14, 2015
Hi,

 

A good place to strat with FME Server and email is:

 

https://knowledge.safe.com/articles/How_To/Email-in-FME-Server-A-Tutorial-Series

david_r
Celebrity
  • Best Answer
  • July 14, 2015
Hi

 

 

When you create your workspace just point your reader to any old text file, it doesn't matter which. When your workspace is triggered by FME Server, the text file contents will be automatically replaced with the email contents.

 

 

Here is a tutorial that pretty much covers your question: https://knowledge.safe.com/articles/How_To/Receiving-email-Part-1-Setting-up-a-topic-and-an-email-address

 

 

David