Hi Louis,
First, to have the sequence fail in the case of an error in "yourstep", you’ll want to set RunState.SequenceFailed.Value = True. You could use a statement step following "yourstep" to set this value appropriately with an expression like:
RunState.Sequence.Main["yourstep"].Result.Error.Code!=0?(RunState.SequenceFailed.Value=True) : (RunState.SequenceFailed.Value=False)
Of course, your condition may be different. If you wanted this to be done in the step, I recommend making a custom step type and editing the default status expression to include an expression like:
Step.Result.Error.Code!=0?(RunState.SequenceFailed.Value=True) : (RunState.SequenceFailed.Value=False)
Regards,
Eric M
Message Edited by Eric M on 05-31-2005 05:04 PM