Skip to main content
Question

Data streaming service doesn't display HTML page, stuck loading


ecx
Supporter
Forum|alt.badge.img+4
  • Supporter

Hello all, 

I have a FME flow web-app (image 1). I am attempting to get a message to the user in certain circumstances via HTML output (image 2), which displays a message via the browser to the user if certain conditions are met, via redirecting the web-app page, e.g. there is an issue with their edits (image 3)

image 1
image 2
image 3, text printed through the browser



This works, sort of. but its not good enough for end users, as the page redirects, but is blank and is stuck in a perpetual loading state. Until the user hits the ‘stop refresh’ (X) on their browser, then the message (image 3) appears.

My questions are:
How can I make this work without the user having to hit the stop refresh button?

Will that page redirect stop the rest of the FME process from running/committing changes? Is there a way to link this to a terminator? if I can terminate the process the perpetual refresh may also stop. 

 

 

I have the services set up like this:


Or, are there any alternative ways to get a message to the user?
 

3 replies

j.botterill
Influencer
Forum|alt.badge.img+40
  • Influencer
  • May 1, 2025

Perhaps place a nofeaturetester where the output continues to the html writer, but the no output port is connected to a terminator

NB. you will need to manually upload the nofeaturetester to FME Flow, follow the message that pops up when publishing

Be sure to include the (HTML) “writer in stream”

 

Other options might be to make use of Notification Topics, 

Note: You can specify your own topics to receive success or failure notifications in the following situations: When you publish a workspace to FME Server to the Data Download or Job Submitter services. In an Automations workflow that contains a Notify an FME Server Topic external action.

  use the ‘Edit’ of the Data Streaming service when publishing. 

but you might need an additional writer 

 


ecx
Supporter
Forum|alt.badge.img+4
  • Author
  • Supporter
  • May 8, 2025

Thank you for your reply j.botterill, although I am having a bit of trouble following your instruction.



I think if I can somehow terminate the workbench after the html output has been generated then the message may appear, as the data streamer is stuck in that constant loading state until I hit X on the browser. Possibly if the workbench is terminated it may stop that loading state?
 


j.botterill
Influencer
Forum|alt.badge.img+40
  • Influencer
  • May 8, 2025

Yes you might need to consider the Workspace Parameters > Rejected feature handling settings

https://docs.safe.com/fme/html/FME-Form-Documentation/FME-Form/Workbench/workspace_parameters.htm?Highlight=rejected%20feature%20handling

If you set it to Continue, then the terminator transformer can be used. But perhaps in this Data Streaming to HTML writer, you may want to set it to Terminate

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings