@@ -249,9 +249,6 @@ END_IF
249
249
250
250
IF (THIS^.Done) THEN
251
251
IF (THIS^._currentRunResult.Result = eOverallResult.Failed) THEN
252
- IF (__ISVALIDREF(_refOverallResult)) THEN
253
- _refOverallResult := _originalOverallResult;
254
- END_IF
255
252
256
253
IF inFailMode = eTcoInspectorFailMode.CarryOn THEN
257
254
_coordinator.MoveNext();
@@ -263,19 +260,34 @@ IF (THIS^.Done) THEN
263
260
IF OverInspected THEN
264
261
_coordinator.MoveNext();
265
262
ELSE
263
+ IF (__ISVALIDREF(_refOverallResult)) THEN
264
+ _refOverallResult := _originalOverallResult;
265
+ END_IF
266
+
267
+ ClearResult(_currentRunResult);
266
268
_coordinator.Retry(inFromState);
267
269
END_IF;
268
270
ELSIF inFailMode = eTcoInspectorFailMode.RetryThenJumpTo THEN
269
271
IF OverInspected THEN
270
272
_coordinator.Retry(inToState);
271
273
ELSE
274
+ IF (__ISVALIDREF(_refOverallResult)) THEN
275
+ _refOverallResult := _originalOverallResult;
276
+ END_IF
277
+
278
+ ClearResult(_currentRunResult);
272
279
_coordinator.Retry(inFromState);
273
280
END_IF;
274
281
275
282
ELSIF inFailMode = eTcoInspectorFailMode.RetryThenTeminate THEN
276
283
IF OverInspected THEN
277
284
_coordinator.Terminate();
278
285
ELSE
286
+ IF (__ISVALIDREF(_refOverallResult)) THEN
287
+ _refOverallResult := _originalOverallResult;
288
+ END_IF
289
+
290
+ ClearResult(_currentRunResult);
279
291
_coordinator.Retry(inFromState);
280
292
END_IF;
281
293
@@ -440,16 +452,18 @@ END_IF
440
452
441
453
IF (THIS^.Done) THEN
442
454
IF (THIS^._currentRunResult.Result = eOverallResult.Failed) THEN
443
- IF (__ISVALIDREF(_refOverallResult)) THEN
444
- _refOverallResult := _originalOverallResult;
445
- END_IF
446
455
447
- ClearResult(_currentRunResult);
448
456
IF OverInspected THEN
449
457
_coordinator.Terminate();
450
458
ELSE
459
+ IF (__ISVALIDREF(_refOverallResult)) THEN
460
+ _refOverallResult := _originalOverallResult;
461
+ END_IF
462
+
463
+ ClearResult(_currentRunResult);
464
+
451
465
_coordinator.Retry(inFromState);
452
- END_IF;
466
+ END_IF
453
467
ELSE
454
468
_coordinator.MoveNext();
455
469
END_IF;
0 commit comments