Skip to main content

Hi all,

 

I am wondering if anyone has faced a similar challenge. I created an FME workbench and published it to FME Flow successfully with some user parameters. The challenge is that I would like to send a message to the user after the job has completed running (or if failed). So instead of saying the job is completed or failed, I would like to modify it to give a more meaningful message.

I do not want to send emails to users, otherwise I would have tried topics or automations. I just want to send a message (from an attribute) that appears at the end of the job.

Thanks for the support in advance!

 

Regards,

Maadh

Hi @maadh.mamari ,
It’s not clear to me where you want this ‘message’ to appear?

  1. How are the users running the workspace?
  2. Are the logging into the FME Flow Web UI to run the jobs?
  3. Are they waiting for the job to complete?
  4. Are they reviewing the Job log after it completes (regardless if failure or success)?


Depending on the type of job failure, for example, if the engine crashes while running the job, there would be no way to ‘capture’ or produce a message to the log file. If the job runs normally but fails for a captured reason (and no engine crash occurs), it could be possible to use a ‘Shutdown Python Script’ to add ‘content’ to the log file but no where else (unless of course it was to send an email but you don’t want that).  Same could happen for a success job.

If you can share some more details that might help me understand the ‘requirement’.  Thanks (and sorry for a possible misunderstanding of the requirement).


Hi @steveatsafe ,

 

Thank you very much for the reply!

 

I would like to the message to appear here:


Instead of saying Failure or Completed, I want to send a message from the workbench to the users. I do not want FME to capture the issue, I want to manipulate the message through some testers in FME workbench. I only hidden the title of the FME Flow app here (the RED is not indicating where the message should be, ideally the message should be just below the FAILURE text)
I hope the requirement is clearer now 

 

 


Create a HTML page in the workspace, using HTMLReportGenerators and a HTMLLayouter.

Turn the workspace into a Flow Workspace App on FME Flow to present this HTML page to your users after running the Workspace.


Create a HTML page in the workspace, using HTMLReportGenerators and a HTMLLayouter.

Turn the workspace into a Flow Workspace App on FME Flow to present this HTML page to your users after running the Workspace.

Hi @geomancer 

Thank you for your reply.

I understand what you are saying, but how do I tell FME Flow to display the content of the HTMLLayouter in the app web page after its completion?


Hi,

If I remember correctly (unfortunately I'm not in a position to test this right now):

  1. Publish the workspace to FME Flow with Data Streaming enabled; under the properties of the Data Stream after 'Include Writers in Stream’ add the HTML writer.
  2. In FME Flow set Service to Data Streaming when defining the Flow Workspace App.

Then at the end of the workspace FME Flow will automagically show the HTML page you created inside the workspace.


Hi,

If I remember correctly (unfortunately I'm not in a position to test this right now):

  1. Publish the workspace to FME Flow with Data Streaming enabled; under the properties of the Data Stream after 'Include Writers in Stream’ add the HTML writer.
  2. In FME Flow set Service to Data Streaming when defining the Flow Workspace App.

Then at the end of the workspace FME Flow will automagically show the HTML page you created inside the workspace.

Wow, exactly like I needed it.

 

Thank you very much, really appreciate you sharing this!


Reply