Skip to main content
Solved

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

  • March 13, 2024
  • 1 reply
  • 36 views

Marcel-Jan
Star Blazer L2
Forum|alt.badge.img+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)?

 

Best answer by Pele

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

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

Forum|alt.badge.img+1
  • Ataccamer
  • March 15, 2024

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


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