OP-TED / eForms-SDK

eForms is the notification standard for public procurement procedures in the EU. The eForms SDK is a collection of resources providing the foundation for building eForms applications.
Creative Commons Attribution 4.0 International
59 stars 30 forks source link

Impossible to fulfill assert in Notice 1, in OPT-201-Organization-TouchPoint #883

Closed PiotrRymarz closed 7 months ago

PiotrRymarz commented 7 months ago

Hi, as far as I understand it is impossible to correctly fill notice 1.

We have field OPT-201-Organization-TouchPoint which has hidden ID (TPO-XXXX). This means that we have to fill value in, because end user does not have such possibility. So we automatically have TPO-0001 in our notice. It is also possible for end user to add additional touch points, so we have additional TPO's (TPO-0002, TPO-0003 and so forth)

With this field there is an assertions

{
        "condition" : "{ND-Organization} ${OPT-201-Organization-TouchPoint is present}",
        "value" : "{ND-Organization} ${((OPT-201-Organization-TouchPoint in OPT-301-Lot-AddInfo) or (OPT-201-Organization-TouchPoint in OPT-301-Lot-DocProvider) or (OPT-201-Organization-TouchPoint in OPT-301-Lot-EmployLegis) or (OPT-201-Organization-TouchPoint in OPT-301-Lot-EnvironLegis) or (OPT-201-Organization-TouchPoint in OPT-301-Lot-FiscalLegis) or (OPT-201-Organization-TouchPoint in OPT-301-Lot-Mediator) or (OPT-201-Organization-TouchPoint in OPT-301-Lot-ReviewInfo) or (OPT-201-Organization-TouchPoint in OPT-301-Lot-ReviewOrg) or (OPT-201-Organization-TouchPoint in OPT-301-Lot-TenderEval) or (OPT-201-Organization-TouchPoint in OPT-301-Lot-TenderReceipt) or (OPT-201-Organization-TouchPoint in OPT-301-Part-AddInfo) or (OPT-201-Organization-TouchPoint in OPT-301-Part-DocProvider) or (OPT-201-Organization-TouchPoint in OPT-301-Part-EmployLegis) or (OPT-201-Organization-TouchPoint in OPT-301-Part-EnvironLegis) or (OPT-201-Organization-TouchPoint in OPT-301-Part-FiscalLegis) or (OPT-201-Organization-TouchPoint in OPT-301-Part-Mediator) or (OPT-201-Organization-TouchPoint in OPT-301-Part-ReviewInfo) or (OPT-201-Organization-TouchPoint in OPT-301-Part-ReviewOrg) or (OPT-201-Organization-TouchPoint in OPT-301-Part-TenderEval) or (OPT-201-Organization-TouchPoint in OPT-301-Part-TenderReceipt) or (OPT-201-Organization-TouchPoint in OPT-301-ReviewBody) or (OPT-201-Organization-TouchPoint in OPT-301-ReviewReq))}",
        "severity" : "ERROR",
        "message" : "rule|text|BR-OPT-00201-0101"
      }
  which basically says, that if we have any TPO value (which we are forced to have) it must be used in one of many listed fields.

  And here comes the issue.
 Non of listed fields is present in notice 1. So from one side we are forced to add TPO-XXXX ids, and from other we are forced to fill fields which are not present.

 Am I maybe missing something?