Skip to main content
Solved

Can you run a SQLExecutor transformer that takes a string as a parameter and uses it as part of the SQL statement to be executed?


plynn
Participant
Forum|alt.badge.img+3
  • Participant

I need to run a sql statement to determine if my workspace should run. If the sql statement returns any records, then I need to terminate the flow. If nothing is returned then it is okay to run the workspace. I would like to pass in a user parameter as a string to be used in the sql statement. Is this possible?

Best answer by redgeographics

In short: yes, you can build the query using attribute values, parameters etc.

You should probably look into the NoFeaturesTester to check if nothing comes back too

View original
Did this help you find an answer to your question?

2 replies

redgeographics
Celebrity
Forum|alt.badge.img+49
  • Celebrity
  • Best Answer
  • July 27, 2021

In short: yes, you can build the query using attribute values, parameters etc.

You should probably look into the NoFeaturesTester to check if nothing comes back too


plynn
Participant
Forum|alt.badge.img+3
  • Author
  • Participant
  • July 27, 2021

Thank you. I have added the NoFeaturesTester and it seems to be working well.


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