04-30-2008 02:35 AM
04-30-2008 03:20 AM
04-30-2008 06:23 AM
04-30-2008 06:38 AM - edited 04-30-2008 06:39 AM
04-30-2008 06:54 AM
04-30-2008 07:32 AM
05-01-2008 02:22 PM
05-02-2008 01:42 AM
Hi,
One way you could try is using the 'Propate To SubSequence' and 'Allow Propagation from Caller'.
You can find these setting when you right mouse click on the Locals variable.
You have to have the same local variable in the Caller sequence and the Callee Sequence
If you want to pass a value from the Caller Sequence, you set the Locals variable to 'Propate To SubSequence' and in the Callee Sequence you set the Locals variable to 'Allow Propagation from Caller'
For example.
In 'Single Pass' sequence in SequentialModel.seq, if you have a Locals.Test variable of type number which has the setting 'Propate To SubSequence' and the value of Locals.Test = 5.
In 'MainSequence' of MyTestSequenceFile.seq you have Locals.Test variable of type number which has the setting 'Allow Propagation from Caller' and the initial value set to 0.
When when you execute your MainSequence using Single Pass. When MainSequence is called from the ProcessModel, Locals.Test will equal 5, which uis the value passed from Single Pass.
If you want to pass a value from the Callee Sequence, you set the Locals variable to 'Propate To SubSequence' and in the Caller Sequence you set the Locals variable to 'Allow Propagation from Caller'
Therefore in my example
In 'Single Pass' sequence in SequentialModel.seq, if you have a Locals.Test variable of type number which has the setting 'Allow Propagation from Caller' and the value of Locals.Test = 5.
In 'MainSequence' of MyTestSequenceFile.seq you had Locals.Test variable which had the setting 'Propate To SubSequence' and the intial value was 0. But before you returned from MainSequence, in the Cleanup you set Locals.Test to -1.
When when you execute your MainSequence using Single Pass. Then when MainSequence is called from the ProcessModel, Locals.Test will equal 0, ( in this case the value of 5 is not propagated from Single Pass), but when you return back to Single Pass, the value in Locals.Test will be -1.
Likewise, if you wanted to pass to and from using the same variable, then the variable will have both settings of 'Propate To SubSequence' and 'Allow Propagation from Caller' set in each Sequence its used.
Hope this helps
Regards
Ray Farmer
05-06-2008 05:19 AM