Skip to main content

Validating data against business logic

1 Tarea

10 minutos

Visible para: All users Applies to: Pega Platform 8.8
Principiante
Data Integration
Inglés
Verify the version tags to ensure you are consuming the intended content or, complete the latest version.

Escenario

Customers with standard coverage use a credit card to pay for services performed by a service provider. To ensure that credit card transactions are processed correctly, stakeholders have identified that the expiration date must be in the future. Expired cards are rejected, and the process cannot continue until the user provides a valid expiration date.

The following table provides the credentials you need to complete the challenge.

Role User name Password
Application Developer author@gogoroad pega123!
Nota: Your practice environment may support the completion of multiple challenges. As a result, the configuration shown in the challenge walkthrough may not match your environment exactly.

Debe iniciar su propia instancia de Pega para completar este Reto.

La inicialización puede demorar hasta 5 minutos. Le pedimos que tenga paciencia.

Recorrido del Reto

Tareas detalladas

1 Configure a view to validate the expiration date is in the future

  1. In the Pega instance for the challenge, enter the following credentials:
    1. In the User name field, enter author@gogoroad.
    2. In the Password field, enter pega123!.
  2. In the navigation pane of App Studio, click Case types > Assistance Request to open the Assistance Request case type.
  3. Click the Enter payment information step.
  4. In the contextual properties pane on the right, click Configure view.
  5. In the Enter payment information view, click the Validations tab to add a validation condition to the step.
    configureView
  6. In the Validate fields based on these conditions section, click Add condition to make the condition entry fields available. 
  7. In the Message field, enter Expiration date is not valid as the message to display if the user enters an invalid expiration date.
  8. In the Select list, select Fields > Payment information > Expiration date.
  9. In the Comparator list, select is before.
  10. On the right, click the Gear icon to open the Select values dialog box to define additional options for the condition.
    The Validate fields modal box highlighting selecting the value of Today
  11. In the Select values dialog box, in the Type list, select Time period to match the fields as shown in the following image.

    selectValues
  12. In the Select values dialog box, click Submit.
  13. In the Enter payment information view, click Submit.

Este Reto es para practicar lo aprendido en el siguiente Módulo:


Disponible en la siguiente misión:

If you are having problems with your training, please review the Pega Academy Support FAQs.

¿Le ha resultado útil este contenido?

El 100% ha encontrado útil este contenido.

¿Quiere ayudarnos a mejorar este contenido?

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice