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
Expand all | Collapse all

Get Username from IThingID

  • 1.  Get Username from IThingID

    Posted Tue June 12, 2012 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 Tue June 12, 2012 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