Now, we will add a Collection
DeptEO.xml for adding a count validation rule. Imagine a business rule that says that the number of employees added to department number
10 should be more than five. In this case, you will have a
count operation for the employees added to department number
10 and show a message if the count is less than
5 for a particular department.
We will break this action into the following three parts: