Search in sources :

Example 1 with VersionedProcessGroupEnricher

use of org.apache.nifi.minifi.toolkit.configuration.registry.VersionedProcessGroupEnricher in project nifi-minifi by apache.

the class ConfigMain method transformVersionedFlowSnapshotToSchema.

public static ConfigSchema transformVersionedFlowSnapshotToSchema(VersionedFlowSnapshot versionedFlowSnapshot) {
    VersionedProcessGroupEnricher enricher = new VersionedProcessGroupEnricher();
    enricher.enrich(versionedFlowSnapshot.getFlowContents());
    ConfigSchema configSchema = new NiFiRegConfigSchemaFunction().apply(versionedFlowSnapshot);
    return configSchema;
}
Also used : NiFiRegConfigSchemaFunction(org.apache.nifi.minifi.toolkit.configuration.registry.NiFiRegConfigSchemaFunction) VersionedProcessGroupEnricher(org.apache.nifi.minifi.toolkit.configuration.registry.VersionedProcessGroupEnricher) ConfigSchema(org.apache.nifi.minifi.commons.schema.ConfigSchema)

Aggregations

ConfigSchema (org.apache.nifi.minifi.commons.schema.ConfigSchema)1 NiFiRegConfigSchemaFunction (org.apache.nifi.minifi.toolkit.configuration.registry.NiFiRegConfigSchemaFunction)1 VersionedProcessGroupEnricher (org.apache.nifi.minifi.toolkit.configuration.registry.VersionedProcessGroupEnricher)1