Sunday, March 1, 2015

ADF exam question: Identify five things that you can do with the declarative validation features

Solving exam questions can sometimes refresh your knowledge on technology. Recently fell into my hands following question:

Identify five things that you can do with the declarative validation features of ADF Business Components?

A. Define declarative validation rules at an attribute level and an entity level.
B. Define whether a validation rule is either an error or a warning.
C. Define whether the validation rule fires on the UI or business service tier.
D. Define the order of execution of validation rules.
E. Conditionally execute a validation rule based on an expression.
F. Parameterize validation messages to reference ADF Business Components control hints, such as labels.

OK. Lets solve our issue:

A. Defining declarative validation rules at attribute level and entity level is one of base features of ADF BC Model. So - answer A is correct

To define validation on entity or attribute level you should go to the Application Navigator and double-click the desired entity object. In the overview editor, click the Business Rules navigation tab, select the object for which you want to add a validation rule, and then click the Add icon.
  • To add a validation rule at the entity object level, select Entity. 
  • To add a validation rule for an attribute, expand Attributes and select the desired attribute. 

B. Define whether a validation rule is either an error or a warning - correct answer. When creating rule, you can also set in tab Failure Handling its Failure Severity, as shown below:



 

C. Define whether the validation rule fires on the UI or business service tier - this is in my opinion some unfortunately question. In ADF View (not in ADF BC layer only) of course you may define validation on UI layer. So the answer is true.

D. Define the order of execution of validation rules. Still some functionality in ADB BC is missing. One of this is the easy configuration for execution order. So the answer is false.

E. Conditionally execute a validation rule based on an expression - of course you can. To do this go to Business Rules navigation tab, select the object for which you want to add or modify a validation rule. Click Add or click on Rule to modify and in appeared popup go to Validation Execution tab.

 

F. Parameterize validation messages to reference ADF Business Components control hints, such as labels. - of course you can. Go to Failure Handling tab in Edit Validation Rule popup.

So, we have the solution. Right answers are: A, B, C, E, F.

1 comment:

  1. Hi! I came across this post studying for my AF Certification Test. I'm not so sure about D being false:

    You can set up the execution order of the business rules, thus establishing the validation order.

    ¿Shouldn't be C the false one? Defining Business Rules at Entity level kind of sound like Business service tier to me.

    Any thoughts?

    ReplyDelete