Page History
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
@AquimaService("EXAMPLE_SERVICE") public class ExampleService implements IService { @Override public IServiceResult handle(IServiceContext serviceContext) throws ServiceException, Exception { final var auditEngine = serviceContext.getAuditEngine(); auditEngine.audit(() -> new ExampleAuditMessage(serviceContext.getProfile())); // This ExampleAuditMessage could for example set all required fields by itself from the profile. auditEngine.audit(() -> new ExampleAuditMessage(serviceContext.getProfile())); return new ServiceResult("Success"); } } |
...
Overview
Content Tools