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.  Get Username from IThingID

    Posted 06/12/12 10:20 AM

    Hi,
    How can I get the username “name”,from IThingID id in webMethods DB?

    Regards,


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


  • 2.  RE: Get Username from IThingID

    Posted 06/12/12 02:00 PM

    Probably the simplest way would be to use the java apis inside a portlet that is deployed to MWS.

    For example:

    
    String thingid_string = "/meta/default/user/0000005284";
    com.webmethods.portal.system.IURI principalURI = com.webmethods.portal.system.PortalSystem.getPortalSystem().acquireURI(thingid_string);
    com.webmethods.caf.faces.data.dir.IPrincipalProvider principal = 
    com.webmethods.caf.faces.data.dir.PrincipalModelFactory.createPrincipalModel(principalURI);
    String userID = principal.getPrincipalID();

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