Extending Core Engine - WaCoDiS/core-engine GitHub Wiki
Integrate new DataEnvelopes and SubsetDefinitions
This section describes the code additions that have to be made so that WaCoDiS Core Engine (Module: Wacodis Job Definition Evaluator) can handle new DataEnvelopes and SubsetDefinition.
Preconditions:
- Java classes must be generated for the new data types that have been added to the schema. This can be done by executing
mvn clean install -p download-generate-models
for the Wacodis Core Engine Data Models module. - When integration new types of DataEnvelopes and SubsetDefinitions to the WaCoDiS System the WaCoDiS Data Access component must be changed as well. The wiki of WaCoDiS Data Access lists the changes that have to be implemented.
- extend matchSourceTypes in class SourceTypeDataEnvelopeMatcher:
The core engine (Evaluator) only checks if a DataEnvelope is a potential match (candidate) for a job input. Exact matching is done by sending a request do Data Access API. The method matchSourceTypes must return true if a DataEnvelope's source type (available data set) matches the source type of a SubsetDefinition (input description). For that the conditional branch should be extended. This method should only match source types and no technical attributes (since this is done by requesting Data Access API.