Solved

Is there a system variable to get the name of the component?

  • 13 March 2024
  • 1 reply
  • 30 views

Userlevel 3
Badge +1

Short question here: I'm creating a debug step that writes to a database table. In that I would like to put the name (or path?) of the component that was running. Is there some kind of system variable (similar to $ewf_workflow_id in workflows)?

 

icon

Best answer by Pele 15 March 2024, 18:05

View original

1 reply

Userlevel 1
Badge

Hi @Marcel-Jan,

unfortunately for plans and components there is no such system variable.

You can always “hard-code” your context to the JDBC writer step, or alternatively, you can convert the step into a reusable “debug output” component where the log source of the debug would be parametrized. Such a configuration would allow you to dynamically change the “source” and still log to the same debug table, or you could build a more complicated debug logic component distributing the debug records based on your defined criteria to various outputs.

Hope this helps you move forward.

Petr

Reply