Enable "Clear State"

The default behavior for event queries is to accumulate the query values, adding them to existing values. For example, if you have 5 workflows in progress, the Workflow event will count 5 workflows the first time it queries the Process Analyzer data, and it will count another 5 workflows five minutes later for a total of 10 workflows, and so on with each query. This technique is generally not appropriate for work in progress.

NOTE  If you are using the event objects provided in OOTBConfiguration.JAR, Buckets.JAR, and Thresholds.JAR, you can modify these events as appropriate for your application—the change described below has already been applied to these event objects. For new events that you create, use the following procedure to modify the default behavior so that each event query will clear the current values and use the new values obtained with the query.

  1. In FileNet Application Workbench, open Administrator Console.
  2. Click Import/Export and select Export Metadata to a JAR file (download).
  3. Save the file to your local directory.
  4. Open the exported jar file using WinZip.
  5. In the WinZip Windows select the event file you created, <EventName>.xml and extract it your local system using the “Use folder names” option to maintain the same path as the original file.  
  6. Open the Event file you just extracted with Notepad and add the line below at the end of the file between </ns1:recoveryLoggingEnabled> and </ns1:createEventStream>:

    <ns1:clearStateInfo><ns1:enabled>true</ns1:enabled></ns1:clearStateInfo>

  7. Save the file.
  8. In WinZip Windows, click Add to add the event file you just modified to the JAR file with the “Save full path info” checked.
  9. Repeat Step 6 for other Events you have created, if needed.
  10. Close WinZip
  11. In FileNet Application Workbench, delete the original Event that corresponds to the one that you just modified.
  12. Import the modified JAR file.