Content Management and Capture

Content Management and Capture

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  ICN Plugin customarization related

    Posted Mon August 31, 2020 07:36 AM

    We are customarizing ICN And have created a plugin and one web application is called from that, is there a way to get the session of the user who logged in ICN which we can pass to web application which can be used to create document and check in filenet?



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 2.  RE: ICN Plugin customarization related

    Posted Mon August 31, 2020 07:55 AM

    Try to enable SSO for ICN and when it calls the webapplication it will take the SSO token and login to the webapplication.



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 3.  RE: ICN Plugin customarization related

    Posted Mon August 31, 2020 08:25 AM

    Thank you for the response. Actually, code wise if i can explain we have ICN plug in where custom code is written in Taskmanager.js, and options are given to the user to select any template, which is custom UI form to be filled by user and then submit the form, during the submit we are trying to use filenet api to checkin the document. Is there was way to get the session of the user who has logged in which can be passed to the custom UI which can be used to make filenet connection for checkin the document from the user who has logged in in filenet and launch workflow.



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 4.  RE: ICN Plugin customarization related

    Posted Mon August 31, 2020 09:11 AM

    I think you need to check with Filenet APIs on how to get the sessions. In ICN, we use this code to get a P8Connection first.

    P8Connection connection = getConnection(request);

    And if you want to share sessions between applications, you will need to check the settings at application level. For example, enable SSO or enable session sharing settings.

    Thanks,

    Jason



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 5.  RE: ICN Plugin customarization related

    Posted Mon August 31, 2020 09:47 AM

    Ok thanks!


    I was using this to make the ce connection that standard way which filenet provides to checkin the document. Not able to find any api to get connection object in custom plugin which can be passed to custom application to create filenet connection.


    con = Factory.Connection.getConnection(uri);

    Subject sub = UserContext.createSubject(con, userName, password, null);

    uc.pushSubject(sub);

    dom = fetchDomain();

    domainName = dom.get_Name();



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 6.  RE: ICN Plugin customarization related

    Posted Tue September 01, 2020 09:07 AM

    Yes, you are right. Please ignore my last comment to get connection from request. That can't be used in the plugin code.

    But I think your code also can't get the connection because that will need to know the userName and password. I suggest you to ask CPE team and WAS team for help about how to deal with session sharing.

    Thanks,

    Jason



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration