I have a top level sequence file that creates a .NET DLL object and also stores the ThisContext object in the .NET object. Then the top level sequence file calls a subsequence file with the .NET object as a parameter. In the subsequence file, I have a step that calls a method on the .NET object, and that method needs to set the step status. But trying to set the SequenceContext.Step.ResultStatus does not work, and I am pretty sure it's because SequenceContext.Step does not refer to the current step in the subsequence file -- I think it refers to the current step in the top level sequence file.
Is there a way for me to get the current step in the subsequence file using the sequence context object for the top level sequence file? I notice the Expression Browser says that ThisContext has a recursive subproperty called ThisContext, so it might be possible? But I'm not sure which method to invoke on the SequenceContext object in my .NET code to do that. I know I could pass in the ThisContext object from the subsequence file to the method that needs to set the status, but if I can access the subsequence context from the parent sequence context, then that would be the best solution.