Rules
Basic Info
|
Rule
|
For outbound messages, if the Response Code is 210 or if the Response Code is 212 and the Routing Details Forward Duplicate Indicator is true, the Effective Time must exist within the Response Group. |
|
Context
|
/ubl:ApplicationResponse/cac:DocumentResponse/cac:Response
|
|
Pattern
|
vrbl-ar-fr-1p0 |
|
Severity
|
fatal |
Used Template: Exists
| Parameter |
|
Value |
| probe |
= |
cbc:EffectiveTime
|
Implementation
(
not(starts-with(/ubl:ApplicationResponse/cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:ApplicationResponseExtension/vrbl:RoutingDetails/vrbl:Receiver, 'GENERIC_PPF')) or not(cbc:ResponseCode = concat($VRBL-FR-Prefix, '210') or (cbc:ResponseCode = concat($VRBL-FR-Prefix, '212') and ../../cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:ApplicationResponseExtension/vrbl:RoutingDetails/vrbl:ForwardDuplicateIndicator = 'true'))
)
or
(
boolean(cbc:EffectiveTime)
)