In part one of this tutorial we ran a workspace that was already provided with FME Server
but you will want to be able to publish your own workspaces to FME Server and run them,
so let's learn how that's done.
In this video we will review and run a workspace in FME Workbench, publish the workspace to
FME Server, run the workspace from the FME Server Web user interface and, finally, show
the results page.
Go ahead and open our community mapping workspace in FME Workbench; it's a straightforward
workspace that will be taking data from a file geo-database and writing it to the generic
format. The generic writer is very flexible and allows the user to decide which format
to write to when the workspace runs currently. It's been set up to write out to Esri shapefile;
we can confirm that by taking a look at the output format parameter.
Let's run the workspace to make sure it works before publishing it to FME Server.
In FME Workbench, go to file, published to FME Server, or select the published to FME
Server tool. Connect to your FME Server, enter your Server URL, then connect with the username
and password. We can use the default author username and author password. Next, select
the repository and workspace name. We will click on the new button to create a new repository,
Server Tutorial. Let's rename the workspace to community mapping.FMW. Next, register the
workspace with one or more services; each service returns translation results in slightly
different forms the data download service returns results as a downloadable zip file,
the data streaming service returns results as a data stream, the job submitter service
accepts and runs workspace job requests, the KML network link returns a KML network link
that can be used in Google Earth and the notification service allows for event driven messaging.
Check the data download service. You can leave the job submitter checked as well. Click publish.
The log file should confirm the workspace was successfully published.
Now open the FME Server Web user interface login with the author username and author
password.
Our workspace appears in the last published workspaces section. Click run workspace. On
the run workspace page select the repository we just created, Server tutorial; once you
do this the workspace field below will automatically be populated with the community mapping workspace
because it is the only one in the repository. The service drop-down shows the two services
that we registered this workspace with; pick data download. We will work with published
parameters in the next part of this tutorial, for now click on run workspace.
We have a successful translation with some summary information and a data download URL.
Click on the URL to download the zip file then open up the zip file to confirm that
we have a number of Esri shapefile's as a result of our translation.
Wouldn't it be great to give the user the choice of which format they want the results
in? We will learn how to do just that in the next part of this tutorial.