span8
span4
span8
span4
For the FME Server 2014 version of this article please see:Workspace Notifications,Part 1 (2014)
Most of these methods will also work with FME 2013,but please see the section on older versions in the introduction for more information.
The recommended method for sending a notification while a workspace is running is theFMEServerNotifier.This transformer allows you to select a topic,and specify a message.The message can be generated on the fly from feature attributes,workspace parameters,or system parameters.This method works in FME Desktop and on FME Server.
In this example,we will be generating notification content dynamically,formatting it for use by the email subscriber,and notifying FME Server from within a workspace.The actual work done is a simple conversion from Shape to File Geodatabase.
Please follow these steps:
email_subject: FME Notification: $(FME_MF_DIR)
email_to:user@example.com
email_from:fme@example.com
subscriber_content: Notification generated at @Value(_timestamp).@Value(_count) features were read.
{ "email_from" : fme:get-attribute("email_from"),"email_to" : fme:get-attribute("email_to"),"email_subject" : fme:get-attribute("email_subject"),"subscriber_content" : fme:get-attribute("subscriber_content") }
Here is the completed workspace:
When the workspace is run,it will publish toSAMPLE_TOPIC.You can see the result using Topic Monitoring on the Notification page in the FME Server Web Interface.If you want to take this a step further,you canconfigure an email subscriberwhich is subscribed toSAMPLE_TOPICand you will should receive an email in your inbox.For example:
Continue topart 2
Receiving email,Part 1: Setting up a topic and an email address (2015)
Sending email,Part 1: Setting up a topic and an email subscriber (2015)
Workspace notifications,Part 3: Completion notification (2015)
Sending email,Part 5: Sending an email with attachments (2015)
Workspace Notifications,Part 1: From within the workspace (2016)
Sending email,Part 2: Sending an email using the FMEServerNotifier (2015)
Sending email,Part 4: Sending prettier email using HTML (2015)
Receiving email,Part 2: Processing email with a workspace (2015)
Receiving email,Part 3: Using email attachments (2015)
Sending email,Part 3: Sending an email when a workspace completes (2015)
© 2019 亚搏在线Safe Software Inc |Legal