I am trying to create a generic message logger class using LVOOP. The logger would include information about the step at runtime (name, sequence, etc.). I would like to create the message logger Object and then pass it into another Object (communication, oven controller, etc.). Each would get its own copy. None of this is an issue so far.
I have found ways to gather the information needed by passing in ThisContext. However, this only appears to work if ThisContext is passed in on the currently executing step. If I hold ThisContext in LVOOP, the next step to try to use it creates an error 1 "An input parameter is invalid". Is there a way to get this type of information (name, sequence, etc.) without passing in ThisContext in at every step? It would be inconvenient to do this, but if necessary I will. It does go against LVOOP.
Summary: Can I hold ThisContext from a step and use it in a later step to find the current step name? If not, is there an efficient way to do this?