05-20-2022 11:06 AM
Hello,
I'm working on an Error Handling Sequence. I'm trying to get the path from the Custom Step that fails, for example: C:\Myproject\Modules\TS\CustomSteps\MyCustomStep
So far, I can retrieve the path from the sequence file that calls the custom step (StationGlobals.Path =RunState.Caller.RunState.SequenceFile.Path) but I'm unable to get the path from the custom step itself.
Is there anyway to implement this?
Thank you.
05-27-2022 02:46 PM
Steps do not have paths. Their path is the path of the sequence file within which they are instantiated.
Are you talking about where the custom step type is defined? Whenever you place a custom step type instance into a sequence file the type is copied to that sequence file. So the sequence file path and the custom step type definition will be the same thing.
Maybe you could clarify a little what you are looking for specifically.... or rather what your goal is?
Cheers,