Skip to main content

Daten anhand von Business-Logik validieren

Archived

2 Aufgaben

10 Min.

Visible to: All users
Anfänger Pega Platform Deutsch
This content is now archived and is no longer updated. Progress is not calculated. Pega Cloud instances are disabled, and badges are no longer awarded. Hier klicken to continue your progress in the latest version.

Szenario

Kunden mit einer Standarddeckung nutzen eine Kreditkarte, um die von einem Dienstleister erbrachten Leistungen zu bezahlen. Damit Kreditkartentransaktionen korrekt verarbeitet werden, haben die Beteiligten vorgegeben, dass das Ablaufdatum in der Zukunft liegen muss. Abgelaufene Karten werden zurückgewiesen, und der Prozess kann erst fortgesetzt werden, wenn der Benutzer ein gültiges Ablaufdatum angibt.

In der folgenden Tabelle finden Sie die Anmeldedaten, die Sie zur Durchführung der Challenge benötigen.

Rolle Operator ID Kennwort
Application Developer author@gogoroad pega123!

Challenge-Schritte

Genaue Übungsschritte

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

  1. In App Studio, from the left navigation pane, click Case types > Assistance Request to open the Assistance request case type.
  2. Click the Enter payment information step.
  3. In the contextual properties pane on the right, click Configure view.
  4. In the Enter payment information view, click the Validations tab to add a validation condition to the step.
    enter-pay-view-validate-tab
  5. Under No validation conditions present, click Add condition to make the condition entry fields available. 
  6. In the Message field, enter Expiration date is not valid. as the message to display if the user enters an invalid expiration date.
  7. In the Select drop-down, select PaymentInformation > Expiration date.
  8. In the Comparator drop-down, select is before.
  9. To the right, click Select values to define additional options for the condition.
    validations
  10. From the Type drop-down, select Time period. The fields should match the image below.
    validate-select-values
  11. In the Select values dialog box, click Submit.
  12. In the Enter payment information view, click Submit.

 

2 Confirm your work

  1. From the Assistance request case, click Save and run.
  2. Advance the case to the Enter payment information step.
  3. In the Expiration date field, enter a date in the past.
  4. On the Enter payment information form, click Submit to attempt to advance the case. Verify that the application prevents the case type from advancing and displays the Expiration date is not valid error.
    validation message
  5. In the Payment information Expiration date field, enter a date in the future.
  6. Click Submit and confirm that the case advances to the next stage.
    pass validation


In den folgenden Missions verfügbar:

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