Question

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

  • 23 October 2013
  • 3 replies
  • 0 views

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

Userlevel 4
Badge +13
Hi,

 

 

I dont think it is possible, you can try running the sql before and after the translation with a sql creator/executor.
Userlevel 2
Badge +17
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
Ok. Resolved.

 

I solved with WorkspaceRunner.

 

 

Thanks All.  

Reply