cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

container.getTransformationParameters() seems to be deprecated how to replace?

praveen_aby
Explorer
0 Kudos
707

container.getTransformationParameters() seems to be deprecated. IS there a way to replace it in

DynamicConfiguration conf1 = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

Accepted Solutions (1)

Accepted Solutions (1)

alex_bundschuh
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Praveen,

should be:

DynamicConfiguration conf1 = (DynamicConfiguration)all.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

check out my blog for an example:

https://blogs.sap.com/2014/12/18/pi-rest-adapter-using-dynamic-attributes/

Alex

praveen_aby
Explorer
0 Kudos

Thank you Alex for the guidance.

Answers (1)

Answers (1)

Steve-Kay
Participant
0 Kudos

You could also just replace it with:

DynamicConfiguration conf =
(DynamicConfiguration)container.getInputParameters().getValue(StreamTransformationConstants.DYNAMIC_CONFIGURATION);