Content Management and Capture

Content Management and Capture

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

 View Only
Expand all | Collapse all

PluginResponseFilter is not firing on addItem from Content Navigator until Any plugin service is invoked

  • 1.  PluginResponseFilter is not firing on addItem from Content Navigator until Any plugin service is invoked

    Posted Mon November 01, 2021 11:22 PM

    We have implemented ICN custom plugin with a service and plugin response filter (p8/addItem). The add response filter is not firing until service is called. Hence the code is side add response filter is not running. This issue is reproducible in our TEST environment also. Whenever we restart the server, it happens.



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 2.  RE: PluginResponseFilter is not firing on addItem from Content Navigator until Any plugin service is invoked

    Posted Tue November 02, 2021 04:36 PM

    Hello -

    We reviewed this request and the condition and issue are ambiguous: response filter is not firing until service is called.

    Can you offer some deeper detail?

    Response filter code and intended functionality -> current result (on screen or otherwise)-> backend errors observed versus expected results.



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 3.  RE: PluginResponseFilter is not firing on addItem from Content Navigator until Any plugin service is invoked

    Posted Tue November 02, 2021 09:46 PM

    Hi Team,

    We built a ICN custom plugin with a plugin service and plugin response filter. In the service class, we doing change document class and in the plugin response filter we are doing delete document on p8/addItem.

    If the customer adds any document through entry template, the add document response filter should be called and execute the method inside filter method. This is not happening until you call that plugin service.

    Hope that will help.



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 4.  RE: PluginResponseFilter is not firing on addItem from Content Navigator until Any plugin service is invoked

    Posted Wed November 03, 2021 04:35 PM

    "This is not happening until you call that plugin service."

    Can you please expand on this?



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 5.  RE: PluginResponseFilter is not firing on addItem from Content Navigator until Any plugin service is invoked

    Posted Wed November 03, 2021 05:08 PM

    Hi ,


    If add any document using the entry template, the plugin response filter is not firing even though we have added /p8/addItem in the plugin. However the same code works after you call any plugin service that is inside same plugin. Hope this will help you.


    Here are the plugin classes.

    --------------

    public class RelabelPlugin extends Plugin {


    public PluginResponseFilter[] getResponseFilters() {

    return new PluginResponseFilter[]{ new com.dgf.uschb.reclassify.AddDocuemntResponseFilter()};

    }

    public com.ibm.ecm.extension.PluginAction[] getActions() {

    return new com.ibm.ecm.extension.PluginAction[]{new com.dgf.uschb.reclassify.RelabelAction()};

    }

    public com.ibm.ecm.extension.PluginService[] getServices() {

    return new com.ibm.ecm.extension.PluginService[] { new com.dgf.uschb.reclassify.RelabelService(),new com.dgf.uschb.reclassify.RelabelDocumentTypeServices() };

    }

    }

    -----------

    public class AddDocuemntResponseFilter extends PluginResponseFilter {

    public String[] getFilteredServices() {

    return new String[] { "/p8/addItem"/*,"/p8/addToFolder"*/ };

    }

    }

    -----------

    public class RelabelService extends PluginService {

    }



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration