use of org.apache.nifi.minifi.toolkit.configuration.registry.NiFiRegConfigSchemaFunction 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;
}
Aggregations