Skip to main content

I have an FME workspace on FME Server 2021 that writes a dwg file. The workspace has multiple parameters including 2 that are mandatory: FILENAME and EMAIL.

 

We want to send an email on success or failure and I have set this up via an automation. This automation will be triggered via the rest api.

 

In the automation 2 of the parameters are passed from the trigger via 2 manual keys. When I manually trigger the automation with a json file and only supply one mandatory parameter (EMAIL) the workspace still continues assigning the output filename to be automation key manual.FILENAME. If run manually via Run workspace it fails.

 

What is the best way to handle this? Should I just test that the parameters are valid via the workspace? Or is there anyway to test if the parameters have been supplied via the automation.

 

Thanks,

 

Annette

 

 

 

I think it'd be best to test this in-workspace. There is the option to filter messages in the automation, but that only looks at a single key (and is in itself another workspace that needs to be run).


Thanks Hans. Yes I have implemented like this via a Creator testing the parameters and Terminating if the tests fail. Was just wondering if there were other options. Automations like this are new to me. Thank you.


Thanks Hans. Yes I have implemented like this via a Creator testing the parameters and Terminating if the tests fail. Was just wondering if there were other options. Automations like this are new to me. Thank you.

Hi @annette2​ ,

I think the other option would be to use the Filter action within the Automation.

After the Manual Trigger I'd add two Filters like:

 

Screen Shot 2022-05-19 at 9.42.39 AMWhere the first filter checks the FILENAME contains .json, if this fails, no further action will take place, if it passes it will be routed through the second filter to check if EMAIL contains @. If this passes, both keys contain values so you can trigger the workspace, if it fails there is no further action.

 

 This may be the preferred route as then you won't trigger the workspace if the criteria isn't met.

 


Reply