[ 
https://issues.apache.org/jira/browse/NIFI-16038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pierre Villard resolved NIFI-16038.
-----------------------------------
    Resolution: Fixed

> In ConnectorMigrationContext, allow setting Connector property value 
> references instead of just values
> ------------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-16038
>                 URL: https://issues.apache.org/jira/browse/NIFI-16038
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Mark Payne
>            Assignee: Mark Payne
>            Priority: Major
>             Fix For: nifi-api-2.10.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> In NIP-29, we introduced the ability to migrate configuration and assets from 
> a versioned process group to a Connector that encapsulates the same logic. In 
> doing so, we introduced the {{ConnectorMigrationContext}} which has methods 
> for setting properties:
> {code:java}
> void setProperties(String stepName, Map<String, String> propertyValues);
> void replaceProperties(String stepName, Map<String, String> propertyValues); 
> {code}
> And methods for copying assets:
> {code:java}
> AssetReference copyAssetFromSource(String sourceAssetId); {code}
> However, we do not have a simple and straight-forward way to apply those 
> Asset References to connector properties. Currently it must be done by 
> configuring Processors / Controller Services to reference parameters and 
> setting things up indirectly. We are currently missing methods to set 
> Connector property values directly as references:
> {code:java}
> void setValueReference(String stepName, String propertyName, 
> ConnectorValueReference valueReference);
> void setValueReferences(String stepName, Map<String, ConnectorValueReference> 
> valueReferences);{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to