IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Read values from IData array in JAVA

    Posted Wed April 27, 2016 04:36 AM

    Hi
    In following example I am going to loop over IData and read strings (name, year, age,…) from .

    IData MyInputDataObject = IDataUtil.getIData( pipelineCursor, “MyInputDataObject” ); //maint cintainer
    IDataCursor MyInputDataObjectCursor = MyInputDataObject.getCursor();
    IData results = IDataUtil.getIDataArray( MyInputDataObjectCursor, “results” ); //secound container

    Example for results object:
    results[reults[0], …results[20]]
    Each results Object contains few values. Example for results[0]: parameter1, parameter2,…parameter20 (name, age, year,… )

    How do I read the strings (name , age, etc) for each results[i] object ?
    The following code does not work and I get null for child object:
    for(…){
    IDataCursor child =results[i].getCursor();
    IData Data = IDataUtil.getIData(child, “results”);
    for(…){

    }

    }
    What am I doing wrong?
    Brg
    Peter


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 2.  RE: Read values from IData array in JAVA

    Posted Wed April 27, 2016 04:47 AM

    I guess it should like…

    for(…){
    IDataCursor child =results[i].getCursor();
    String name = IDataUtil.getString(child, “name”);


    }


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 3.  RE: Read values from IData array in JAVA

    Posted Wed April 27, 2016 05:09 AM

    I tried everything but not this one!!
    thnks


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods