The following sections highlight unique functionality for validation type form rules.
Validation rules determine if the information supplied on the form can be processed. This usually includes checking that required information is supplied and validating that the data is in the correct formats. Validation rules are also used to identify whether the taxpayer related to the form already exists in the system. Validation rules are responsible for reporting any issues on a form that may require correction.
Most forms have a lifecycle that includes a validation step. The base package provides a sample tax form C1-ParentTaxForm that has a Validate status. This status has an enter-plug in that uses the base C1-FRM-APPRL algorithm type to execute rules for the Validation rule event and process any exceptions reported.
Algorithms that perform validation rules are responsible for reporting any issues as a form exception. Form exceptions details must include the form rule group and rule that detected the issue, an exception category and an exception class. The base package includes exception class values of Notification, Waiting for Information and Suspense. Your implementation can add further classes as appropriate for your business rules.
A form can suspend if there are errors that a tax authority user needs to review or fix.
If the form is missing key information, the form can go into a 'waiting' state until the tax authority receives the information from the taxpayer.
The exception class attribute can be used to determine what state a form should move to if there are open issues after validation. The base package algorithm types Tax Form - Transition on Exception (C1-FRE-TROEX) and Registration Form - Transition on Exception (C1-PRF-TROEX) are designed to transition a form to a waiting state if open exceptions of class Waiting for Information exist or to a suspended state if there are open exceptions of the class Suspense. The algorithms are plugged into the respective base form business objects as Business Object Status - Enter plug-ins to the Validate states after theApply Form Rules algorithm.
There are cases where a user may be entering data or correcting data in a form and may want to check the form's validity. The product provides a service that can execute validation rules and return the list of possible exceptions for display to a user. This functionality has been implemented in the base Tax Form and Registration Form parent business objects. When the status is one that allows editing of the form, when the user is editing the form a Check Form button is available.
Copyright © 2007, 2016, Oracle and/or its affiliates. All rights reserved. Documentation build: 2.5.2016 10:21:45 [T1_1454696505000]