Develop > Business logic layer > Developing the business logic layer using the BOD command framework > Developing BOD Process, Change, and Sync services
Use the ChangeNounPart pattern to validate a noun part
Each changeable part of a noun is managed by special command type called a ChangeNounPart command. This command provides a validate() method which you can extend or override to perform the own business logic checking to decide whether the change should be performed. The part to modify, the noun that contains that part, and control parameters are all made available to the command implementation at runtime.
Procedure
- Create a Java class that extends AbstractChangeNounPartUsingBusinessObjectMediatorCmdImpl and implements the ChangeNounPart interface that is associated with the Change controller command.
- Implement the validate() method if specific noun part validation is required before the noun part is changed.
- Register the command implementation.
Related concepts
Business Object Document Process processing pattern
Business Object Document Change processing pattern
Business Object Document Sync processing pattern