ValidateUpdate

Injects the call to the UpdateValidationCommand into the UpdateCommandExtension.

Condition:

dataElement.component.getOption('enableValidation').defined and
    dataElement.component.getOption('enableJaxrs').defined and
    dataElement.getOption('includeJaxrsConnector').defined and
    dataElement.getOption('exposePatchEndpoint').defined and
    !dataElement.dataCommands.{^ #this.name.equals('update' + dataElement.name) }.empty
Expander Layer artifact
UpdateElementCommandExtensionExpander LOGIC_LAYER Update$dataElement.name$CommandExtension.java

Examples of injected Feature Segments

UpdateElementCommandExtensionExpander

@anchor:fields:start
private UpdateCatBreedValidationCommand validationCommand = new UpdateCatBreedValidationCommand();
@anchor:fields:end
@anchor:can-execute:start
CustomCommandResult validate = validationCommand.validate(commandParameter);
if (validate.isError()) {
  return validate;
}
@anchor:can-execute:end