Skip to Content
author's profile photo Former Member
Former Member

JAVA API in pi7.1

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 17, 2011 at 01:58 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 16, 2011 at 05:32 PM

    Hi,

    <LINKS CAN BE SEARCHED> <REMOVED BY MODERATOR>

    regards,

    Rohit

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.