span8
span4
span8
span4
注:本文适用于FME Server的2019+。对于FME服务器2018和较旧的,请参阅Schedule a Workspace to Run with FME Server
在这种情况下,我们的目标是FME服务器utomatically run a workspace, that extracts data from a database and refreshes a set of Shapefiles, on a daily basis. FME Server Automations makes this easy to set up.
我们将充分利用已经发布到FME Server亚搏国际在线官网中的CommunityMapping.fmw工作区第3部分, which reads layers from a file geodatabase and writes out to one of four formats.
在本教程的第4部分,您将学习如何建立一个FME工作区按计划自动运行。
请注意,这个视频是在FME Server的2019.0,界面产生 - 和功能 - 在FME的其他版本可能会有所不同。
1.打开FME Server的Web用户界面,并创建一个新的自动化
Open the FME Server Web User Interface and log in. On the side menu bar, click on Automations > Build Automation.
这将打开自动化控制系统页面。关闭入门出现弹出窗口。这是制造商的自动化;在这里,我们可以创建一个自动化自动化任何FME Server任务。有关自动化的更多信息,请参阅Tutorial: Getting Started With Automations.
2. Set up Trigger
当创建一个新的自动化,扳机组件将已经在画布上,你只需要来进行设置。触发构件上双击打开参数。
在触发参数,我们将设立一个时间表。设置触发,以计划启动。一旦触发类型设置,更多的参数将出现。
对于这个计划,我们希望它在同一时间每天运行一次。要做到这一点,设置计划类型上重复间隔。然后,确保每一个重复设置为1天。启用立即运行,这将开始时间启动自动化的时间设置为每。最后,从现在设定结束一周。点击应用一旦所有的参数设置。
3. Add and Configure an Action
与触发设置,我们需要我们的日程安排做一些事情。在新的计划触发的映衬下一个动作组件下游双击。这将打开操作参数。
在操作参数,选择运行从下拉菜单中选择一个工作区。选择服务器教程作为仓库和CommunityMapping.fmw工作空间将自动填入到工作区部分,因亚搏国际在线官网为它是在我们的资料库中唯一的工作空间。
For our parameters that we set up in the previous tutorial, set Esri Shapefile as the Output format and select all of the feature types for Feature Types to Read. Once this is complete, click Apply.
4. Save and Start Automation
这种自动化很简单,但功能非常强大,因为它允许一个工作区每天要运行而无需用户做任何超出设置的自动化。计划启动之前,自动化需要保存,然后启动。
To save the automation, click on Menu > Save As.
保存自动化如期外形更新程序,然后点击加号来添加一个标签。输入服务器教程的标签名称,然后单击确定两次保存自动化。
一旦自动化已经保存,就可以开始了。启动自动化,点击右上角的绿色启动按钮自动化。一旦自动化已经开始,它需要停止可以对其进行修改之前。
When the automation is running, there will be a red Stop Automation button where the Start Automation button was, and a banner will be at the top, stating that the automation needs to be stopped before editing.
5.验证工作区成功运行
Since you left Start Immediately checked, CommunityMapping.fmw started running when you clicked Start Automation. There are two ways to check the status of your automation and its triggered jobs.
a. View the Automation Log
From the automation page, click Menu > View Triggered Jobs. A list of jobs run by this automation appears. These jobs can also be accessed by going to Jobs > Completed.
b. View the Log File
The second way to see if the automation was successful is by viewing the log files. These files can be accessed by going to Menu > View Log File while in the automation.
6. Trigger a Schedule
When we set up our schedule, we enabled Run Immediately, which caused the automation to fire once we started it and then it will repeat every day at the same time as when we started the automation. But what if we wanted the workspace to be run at 3am, while we were starting the automation at 2pm, and we just wanted to test the schedule to ensure it worked.
当设置时间表的信息,设置为当你想运行的工作空间,并保证立即运行未被选中的时间和日期。然后保存并启动自动化。
Once the automation has been started, if you double-click on the Schedule component to open the parameters, a Trigger button will appear at the bottom. You can’t modify any of the parameters because the automation is running, but you can trigger it to initiate the schedule. This is useful for testing purposes without having to later modify the scheduled start time.
我们希望您发现了这些入门有用FME服务器的教程。如果您在使用FME Server的任何疑问,请查看Q&A Forum, read theFME Server Documentation, or post your question in the comments below. If you want more tutorials to try out other features of FME Server, check out theQuickstart(also accessible from the web user interface login page). You can also view a recorded training course or sign up for a live online training on ourtraining page. Thanks!
Data Attribution
The data used here originates from open data made available by theCity of Vancouver, British Columbia. It contains information licensed under the Open Government License - Vancouver.
Tutorial: Getting Started with FME Server
Job Orchestration with Automations
Automating Workflows from Survey123 to ArcGIS using FME Server
Getting Started with Gallery Apps
Creating a "Visual Calendar of Schedules" as an FME Server Dashboard
Automating Dropbox Workflows with FME Server
© 2020 Safe Software Inc |Legal