Skip to main content
Question

Starting server app automaticly

  • September 2, 2019
  • 4 replies
  • 12 views

jtn40764
Participant
Forum|alt.badge.img

Hello,

 

I build a workspace which create an excel document. on the server.

I build a Server App on the fme Server 2019.1 and it runs fine by calling the url and clicking the run button. But I want that the App starts automaticly with the url and not with clicking the run button. Is this possible?

Thanks for your answers.

Greetings from Germany

Thomas

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

itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • 1442 replies
  • September 2, 2019

Hi @jtn40764,

Not sure this is possible with FME Server Apps, otherwise you will need to create a workflow that uses the streaming service, which will return the output each time the service url is called.

Mind you the streaming service returns the output to the application requesting it (your browser).

To force the output to be downloaded you can add a second writer ( text file for example) since more than one output forces the streaming service to create a zip file of all the workflow outputs.

Hope this helps,

Itay


Forum|alt.badge.img+2
  • 719 replies
  • September 3, 2019

Hi @jtn40764,

If you want to trigger a workspace to run just by entering the url in the web browser take a look at the Webhook URL under the Advanced Run Workspace options. Rather than creating an app, this will create a URL that includes all the set parameter values in the query string so there is no interface for the end user to edit the parameters before clicking run.

Alternatively you could also take a look at the transformations endpoint for the FME Server Rest API which lists three post requests detailing different ways to run a workspace. This option will only run workspaces under the Job Submitter service though, so if you need to run the job under another service then the Webhook is the best option.


itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • 1442 replies
  • September 3, 2019

Hi @jtn40764,

If you want to trigger a workspace to run just by entering the url in the web browser take a look at the Webhook URL under the Advanced Run Workspace options. Rather than creating an app, this will create a URL that includes all the set parameter values in the query string so there is no interface for the end user to edit the parameters before clicking run.

Alternatively you could also take a look at the transformations endpoint for the FME Server Rest API which lists three post requests detailing different ways to run a workspace. This option will only run workspaces under the Job Submitter service though, so if you need to run the job under another service then the Webhook is the best option.

Is the webhook the new streaming service?


Forum|alt.badge.img+2
  • 719 replies
  • September 3, 2019

Is the webhook the new streaming service?

Hi @itay,

What is now named the Webhook URL is the equivalent of the Direct URL in FME Server pre-2019. It will use whatever service your workspace was registered to when you select 'Create a Webhook' so this could be Data Streaming, but also Job Submitter, Data Download etc.