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 get current PageAlias?

    Posted 07/15/08 08:38 AM

    Is there a way in a CAF portlet to retrieve the current PageAlias or page name that the user navigated to?


    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine


  • 2.  RE: How to get current PageAlias?

    Posted 07/15/08 06:33 PM

    You will use the PortalItemModel to get information about the current resource including it’s name, description and aliases. Here’s the javadocs for it: [url]http://ajax-softwareag.com/articles/Y4LCDN/Caf-7-1-1JavaDocs/com/webmethods/caf/faces/data/portal/PortalItemModel.html[/url]

    The way you locate the current requested item is with the following:

    
    IContext context = ContextFactory.acquireContext(true);
    IURI uri = context.getCurrentResource();
    PortalItemModel pim = new PortalItemModel();
    pim.setItemID(uri.toString());
    String [] aliases = pim.getAliases();

    Regards,
    –mark


    #webMethods-BPMS
    #MWS-CAF-Task-Engine
    #webMethods


  • 3.  RE: How to get current PageAlias?

    Posted 07/21/08 08:57 AM

    Thanks mate, that was exactly what I was after.


    #webMethods-BPMS
    #MWS-CAF-Task-Engine
    #webMethods