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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  How to work with documents in Application Platform

    Posted 08/06/20 11:30 AM

    Hi!

    I’m quite sure this is possible, but how can we actually define our own input variables types in an Application Platform solution? For example, in my exposed method:

    @ExposedMethod
    public String Test(ActionItemTemplate htmlTemplateParams)
    {
    StringBuilder stdLog = new StringBuilder();

    	ActionItemTemplate ai = new ActionItemTemplate();
    ai.SetOwner(htmlTemplateParams.GetOwner());
    
    stdLog.append(ai.GetOwner());
    
    return stdLog.toString();
    }
    

    Is this possible or is there any other way where I can work with “Documents” in my application platform?

    Thanks,
    Rui Gomes


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


  • 2.  RE: How to work with documents in Application Platform

    Posted 08/06/20 12:27 PM

    Got it. Java beans might be a good solution. I would have preferred to use a document reference, but I am having some problems, even after creating the document reference POJO. I’m assuming it’s because it has other document references inside…


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


  • 3.  RE: How to work with documents in Application Platform

    Posted 08/06/20 03:32 PM

    Hi Rui,
    Starting in 10.1, App Platform enhanced its support for POJO generation of IS services. Prior to that release, the App Platform Service Wizard generated POJO wrapper classes from the input and output specs of an IS service. Even if the many services use the same document specification, the wizard would create a different set of POJO classes for the parameters.

    So you can launch the AP service wizard ( Shift/Alt/Z ) from the Application Platform perspective and select existing IS documents. Wrapper classes will be generated for the selected document in one Java package for your AP service project, so that you may select one or more IS services that use the same document reference. I’ll upload ‘S.tar’ containing an Eclipse/Designer AP service project, and a word-doc that served as internal documentation for the feature.

    The example created POJO wrappers from an IS flatfile specification document.

    hthpub.zip (388.1 KB)


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


  • 4.  RE: How to work with documents in Application Platform

    Posted 08/07/20 03:42 AM

    You, my good sir, have read my mind! That was exactly what I was looking for! Using the dynamic IDataMap variable fixed my problem! Thanks a lot for the clear explanation :slight_smile:


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