on 04-16-2011 4:20 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
<LINKS CAN BE SEARCHED> <REMOVED BY MODERATOR>
regards,
Rohit
Edited by: Prateek Raj Srivastava on Apr 17, 2011 4:05 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.