Skip to main content
Question

Passing dynamic values to shutdown script


so_much_more
Supporter
Forum|alt.badge.img+6

 

I try to find out how i pass attribute values assigned during runtime to the shutdown script.

I want to pass values of total features read and written from the feature reader\\writer.

I have tried to create private parameters and set the values in runtime with the attribute manager. But the values are <null> / not set when i fetch them in my python script

 

imageimageThis is the value I am tying to set my private parameter as.

I feel somehow this is the wrong way to do it? What other ways can I set dynamic values that I can use in my shutdown script for logging.

2 replies

david_r
Evangelist
  • November 6, 2023

It's not possible to change parameter values once the workspace has started. Also, unfortunately there is no obvious mechanism for transferring attribute values from the running workspace to the shutdown script. The easiest is to use a PythonCaller in your workspace to set a global variable, then retrieve it in the shutdown script.


so_much_more
Supporter
Forum|alt.badge.img+6
  • Author
  • Supporter
  • November 6, 2023

I see, thank you for the help I will give that a go


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