Skip to main content
Question

Pass and Modify Publish Parameter for Writer clause SQL STATEMENT TO EXECUTE BEFORE/AFTER TRANSLATION


Hi all,

 

 

I need pass to parameter to my query in SQL STATEMENT TO EXECUTE BEFORE/AFTER TRANSLATION. For example: I am working with GEOMEDIA. I need to standardize the foreing keys names, pk names, sequences names, and insert to GDOSYS (the metadata for geomedia). I am using dynamic schema from readers to writers for all tables(features) in my folder. I need to pass parameters to queries to be executed before and after the writer. How to do?

 

 

Regards,

 

 

Sólon

3 replies

fmelizard
Safer
Forum|alt.badge.img+19
  • Safer
  • October 23, 2013
Hi,

 

 

I dont think it is possible, you can try running the sql before and after the translation with a sql creator/executor.

takashi
Evangelist
  • October 24, 2013
Hi Sólon,

 

 

I think it's possible via the Scripted Parameter (Python or Tcl).

 

 

If you define two scripted parameters to create Before / After SQL statements based on published parameters, you can link SQL STATEMENT TO EXECUTE BEFORE/AFTER TRANSLATION to them.

 

 

Use the following syntax in the script to access a published parameter.

 

(Python)

 

FME_MacroValues['parameter_name']

 

(Tcl)

 

$FME_MacroValues(parameter_name)

 

 

Takashi

  • Author
  • November 13, 2013
Ok. Resolved.

 

I solved with WorkspaceRunner.

 

 

Thanks All.  

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