Skip to Content
0
Feb 13, 2021 at 05:57 PM

CU21 - Multiple Conditions vs Restrictions Stacking

91 Views

Hi

As earlier was able to write straight case one is to one combination, on one unique Business scenario need insights in writing multiple conditions vs restrictions.

Vignesh V

**SPEC VALIDATION OLD** [WORKING]

OBJECTS:
CAR IS_A (300) SKEY'1ABC'WHERE VAR1=WE1;VAR2=WE2.

CONDITION:
CAR.TOP='9V' AND CAR.SIDE='1A' OR CAR.DECK='OPEN'
 
RESTRICTION:
VAR1<>'20',VAR2<>'09'
==============================================================================================
**SPEC VALIDATION NEW** [EXPECTED]

OBJECTS:
CAR IS_A (300) SKEY'1ABC'WHERE VAR1=WE1;VAR2=WE2.

CONDITION:
CAR.TOP='9V' AND CAR.SIDE='1A' OR CAR.DECK='OPEN' ==> CONDITION 1
CAR.TOP in (8V,10V) ==> CONDITION 2
 
RESTRICTION:
VAR1<>'20',VAR2<>'09'===> RESTRICTIONS FOR CONDITION 1
VAR1<> '09' ===> RESTRICITONS FOR CONDITION 2