This library will be used to handle CCD events related to creating a case from an bulk-scan exception record.
-
Create an instance of case transformer by implementing
ExceptionRecordToCaseTransformerinterface. -
Create an instance of a handler:
ExceptionRecordEventHandler handler = ExceptionRecordEventHandlerFactory.getHandler( transformer, ccdUrl, s2sTokenSupplier );
where
s2sTokenSupplieris an function returning s2s token for your service. -
Call the handler by passing
CaseCreationRequestto it:CaseCreationResult result = handler.handle(careCreationRequest);
The handler will create a case in CCD for you and return the ID of the new case.
You can check a sample implementation in this repository.
To run all unit tests execute the following command:
./gradlew testWe use checkstyle and PMD.
To run all checks execute the following command:
./lint.shThis project is licensed under the MIT License - see the LICENSE file for details.