06-21-2011 01:41 AM
While using file globals to pass data to another sequence, is it necessary that called sequence has to be a subsequence of the calling sequence. In other words, if I call a sequence file that is not a subsequence within my calling sequence, will the called sequence be able to access the file globals of the calling sequence?
Solved! Go to Solution.
06-21-2011 02:41 AM
Hi,
FileGlobals are in scope to any sequence within the same Sequence File.
eg
Sequnce A and Sequence B contained in SequenceFile SF1 which has a FileGlobals FG will be in scope to both sequences.
whereas
Sequence A contained in SequenceFile SF1 its' FileGlobals will not be in scope to Sequence B contained in SequenceFile SF2.
Hope this is clear
06-21-2011 07:22 AM
And also FileGlobals are "Execution local", i.e. if you are calling the same sequence from two different executions, e.g. two TestSockets in a parallel model, then you will have two distinct copies of the FileGlobals.
Regards
Peter
06-22-2011 01:10 AM
Unless you set the property to Shared FileGlobals.
06-22-2011 01:21 AM
Yes, right, forgot that.
Peter