cancel
Showing results for 
Search instead for 
Did you mean: 

JAVA API in pi7.1

Former Member
0 Kudos

Hi,

what are advantages of using the PI7.1 API.

PI 7.0 API, We must implement the interface u201CStreamTransformationu201D and must implement two methods, u201Cexecuteu201D and u201CsetParameteru201D ,in new API we must extend the abstract class u201CAbstractTransformationu201D and must implement method called transform (TransformationInput in, TransformationOutput out)

Could you let me know the difference.

Thanks

sree

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

7.1 JAVA API supports parameters in the mapping (inline with parameterized message mapping). This is not there in old version of JAVA Mapping API.

The method getDynamicConfiguration()of class com.sap.aii.mapping.api.TransformationInput is used to get The DynamicConfiguration object in the latest version 7.1.

Whereas in the previous versions the method get of java.util.Map was used for getting DynamicConfiguration object :-DynamicConfiguration conf = (DynamicConfiguration) param.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

Note :-

A DynamicConfiguration is a map which contains adapter specific message attributes. It connects string values and DynamicConfigurationKeys .

In PI 7.0 API if you wanted to get an instance of trace object,then setParameter method was used that had a java.util.Map as input that contained the AbstractTrace,but in JAVA Mapping using program 7.1 API , the getTrace() Method of AbstractTransformation class is used toget the trace Object (AbstractTrace)

Regards,

Rohit

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

<LINKS CAN BE SEARCHED> <REMOVED BY MODERATOR>

regards,

Rohit

Edited by: Prateek Raj Srivastava on Apr 17, 2011 4:05 AM