Question

FME Flow Apps- redirecting to a loading GIF while running the job

  • 26 November 2023
  • 4 replies
  • 3 views

Badge

I have a Flow App, which performs a relatively long process, which at the end directs the user to a certain url following the success or failure of the process.

The url reference is made by a single HTML writer at the end of the process.

My problem is that this process can take some time,

And in terms of the user experience, the customers are not aware that the process is running behind the scenes.

I want to make a reference to some kind of loading GIF that will at least show them that something is really moving behind the scenes..

And this is where I need your help.

Because if I write to two HTML writers, it simply downloads the two HTML files for me,

It does not direct me HTML line after HTML, but simply disrupts the process.

Does anyone have a solution?

It doesn't even have to be a reference to the HTML of the loading GIF, just an indication in terms of the user experience that will tell the customer: "Don't worry, a few seconds and you move to the next screen"

Thank you!

Dor


4 replies

Userlevel 4
Badge +27

Theres not the functionality out of the box to do that unfortunately. The main approach to solve that would be to build and host a custom web page that interacts with FME through the FME REST API - https://docs.safe.com/fme/html/FME_REST/apidoc/v3/index.html

Userlevel 4
Badge +25

Another option might be to have the user insert an email address - "don't want to wait? Enter an email to get your results when they're ready?"

 

And then Email them the results or a link to the results?

 

It might require a little more configuration - I had a project in the passed where I included an emailer right in the workspace to send of the results (would not really recommend because it's quite annoying to track/update).

Badge

Thanks @virtualcitymatt ,but I think it is bit complicated, and not as fast as I want it to work.

What @hkingsbury suggested suggested could work, but I need to figure out exactly how to do it.

@chrisatsafe ,i remember that you showed me something similar to that, Maybe you have some idea how to solve it?

Userlevel 4
Badge +27

Another option might be to have the user insert an email address - "don't want to wait? Enter an email to get your results when they're ready?"

 

And then Email them the results or a link to the results?

 

It might require a little more configuration - I had a project in the passed where I included an emailer right in the workspace to send of the results (would not really recommend because it's quite annoying to track/update).

As @virtualcitymatt​ said, try not to use an emailer in your workspace, becomes a right pain to update hwen things change. Instead, use an FMEFlowEmailGenerator (https://hub.safe.com/publishers/safe-lab/transformers/fmeflowemailgenerator) and pass that to a Notifier to trigger a topic on your FME Flow. A bit more initial setup (to setup the topic etc on Flow) but will save time in the long run

Reply