ivanakcheurov / desh.net

Parser, engine and tools for desh language in .net
MIT License
2 stars 0 forks source link

Support kiosk/wizard/survey interaction #4

Open ivanakcheurov opened 5 years ago

ivanakcheurov commented 5 years ago

Request

Support kiosk, wizard or survey type of interaction with Desh engine.

Example

Let's take an example of a travel agency. The operator needs to know if the client needs a visa to travel to the country of destination. The business rules that describe if visa is needed are encoded in the following Desh:

nationality:
  - [NL]:
      destination:
        - US: electronic_online_visa
        - UA:
            duration_of_stay:
              - greater_than: 90 days
                decide: paper_visa
              - else: no_visa
  - [UA]:
      destination:
        - US: paper_visa
        - NL:
            biometric_passport:
              - yes: no_visa
              - no: paper_visa

In this case, we don't need to ask a Dutch (NL) client if she has a biometric passport when flying to the US.

Support a question-answer style of interaction with Desh engine: