Activating Spooling for Notifications

As installed, Quality-based Document Control sends notifications when events occur. You can activate notification spooling, and if necessary, deactivate spooling.

When activated, the app collects and combines notifications and then sends out a single notification on a daily basis. If you upgrade from 3DEXPERIENCER2014x, spooling is already activated. If necessary, you can use the inactivate script from this procedure to disable spooling.

  1. Update the web.xml file to enable the timer servlet and configure notification spooling. See Enabling the Timer Servlet.
  2. Create an MQL script containing the following lines. Name it Activate_Spooling.mql:

    connect businessobject "Notification" "APPDOCUMENTSContentAddedEvent" "Common Doc Content Added" relationship "Notification Spool" to "Notification Spool" "Daily" "-";
    connect businessobject "Notification" "APPDOCUMENTSContentCheckoutEvent" "Doc Content Checkout" relationship "Notification Spool" to "Notification Spool" "Daily" "-";
    connect businessobject "Notification" "APPDOCUMENTSContentDeletedEvent" "Common Doc Content Deleted" relationship "Notification Spool" to "Notification Spool" "Daily" "-";
    connect businessobject "Notification" "APPDOCUMENTSContentModifiedEvent" "Common Doc Content Modified" relationship "Notification Spool" to "Notification Spool" "Daily" "-";
    connect businessobject "Notification" "APPDOCUMENTSDeletedEvent" "Doc Deleted" relationship "Notification Spool" to "Notification Spool" "Daily" "-";
    connect businessobject "Notification" "APPDOCUMENTSModifiedEvent" "Doc Modified" relationship "Notification Spool" to "Notification Spool" "Daily" "-";
    connect businessobject "Notification" "APPDOCUMENTSRevisedEvent" "Doc Revised" relationship "Notification Spool" to "Notification Spool" "Daily" "-";
    connect businessobject "Notification" "APPObjectRouteStartedEvent" "Route Started" relationship "Notification Spool" to "Notification Spool" "Daily" "-";
    connect businessobject "Notification" "APPObjectRouteCompletedEvent" "Route Completed" relationship "Notification Spool" to "Notification Spool" "Daily" "-";
    connect businessobject "Notification" "DCLCONTROLLEDDOCUMENTSApprovedEvent" "DocumentApprovedNotification" relationship "Notification Spool" to "Notification Spool" "Daily" "-";
    connect businessobject "Notification" "DCLCONTROLLEDDOCUMENTSReleasedEvent" "DocumentReleasedNotification" relationship "Notification Spool" to "Notification Spool" "Daily" "-";
    

  3. Create an MQL script containing these lines. Name it Inactivate_Spooling.mql:

    disconnect businessobject "Notification" "APPDOCUMENTSContentAddedEvent" "Common Doc Content Added" relationship "Notification Spool" to "Notification Spool" "Daily" "-";
    disconnect businessobject "Notification" "APPDOCUMENTSContentCheckoutEvent" "Doc Content Checkout" relationship "Notification Spool" to "Notification Spool" "Daily" "-";
    disconnect businessobject "Notification" "APPDOCUMENTSContentDeletedEvent" "Common Doc Content Deleted" relationship "Notification Spool" to "Notification Spool" "Daily" "-";
    disconnect businessobject "Notification" "APPDOCUMENTSContentModifiedEvent" "Common Doc Content Modified" relationship "Notification Spool" to "Notification Spool" "Daily" "-";
    disconnect businessobject "Notification" "APPDOCUMENTSDeletedEvent" "Doc Deleted" relationship "Notification Spool" to "Notification Spool" "Daily" "-";
    disconnect businessobject "Notification" "APPDOCUMENTSModifiedEvent" "Doc Modified" relationship "Notification Spool" to "Notification Spool" "Daily" "-";
    disconnect businessobject "Notification" "APPDOCUMENTSRevisedEvent" "Doc Revised" relationship "Notification Spool" to "Notification Spool" "Daily" "-";
    disconnect businessobject "Notification" "APPObjectRouteStartedEvent" "Route Started" relationship "Notification Spool" to "Notification Spool" "Daily" "-";
    disconnect businessobject "Notification" "APPObjectRouteCompletedEvent" "Route Completed" relationship "Notification Spool" to "Notification Spool" "Daily" "-";
    disconnect businessobject "Notification" "DCLCONTROLLEDDOCUMENTSApprovedEvent" "DocumentApprovedNotification" relationship "Notification Spool" to "Notification Spool" "Daily" "-";
    disconnect businessobject "Notification" "DCLCONTROLLEDDOCUMENTSReleasedEvent" "DocumentReleasedNotification" relationship "Notification Spool" to "Notification Spool" "Daily" "-";
    
    

  4. To enable spooling, run the Activate_Spooling.mql script.
  5. To disable spooling, run the Inactivate_Spooling.mql script.