How would you define that the validation rule applies o…

View the Exhibit.

You have defined a compare validation rule on the CommissionPct attribute of the Employees entity object
such that Commission must be greater than zero. How would you define that the validation rule applies only to
those with the JobId “SA_MAN” using the declarative features of ADF Business Components? (Choose the
best answer.)

View the Exhibit.

You have defined a compare validation rule on the CommissionPct attribute of the Employees entity object
such that Commission must be greater than zero. How would you define that the validation rule applies only to
those with the JobId “SA_MAN” using the declarative features of ADF Business Components? (Choose the
best answer.)

A.
Remove the current validator and, instead, write a method validator in Java and use an if statement to
check the value of JobID.

B.
Remove the current validator and, instead, write a script validator using Groovy and use an if statement to
check the value of JobID.

C.
Remove the current validator and, instead, write a regular expression validator to check the value of
JobID.

D.
The entity object has a Validation Execution tab and you use this to set a conditional execution expression
JobId = “SA_MAN”.

E.
Change the literal value in the current validation rule to be if JobId = SA_MAN then return 0.1
else return null.

Explanation:
You can us eGroovy Expressions for Business Rules and Triggers.
https://docs.oracle.com/middleware/1213/adf/develop/adf-bc-validation-rules.htm#ADFFD430



Leave a Reply 0

Your email address will not be published. Required fields are marked *