Updating the managedobjectlifecycle Target in the Event Collector Rules File

You must update the managedobjectlifecycle target to ensure that the doPurgeAudit operation (in the EventCollectorManagementService) purges all process instance-related data when Statistics Collection is disabled.
Note: You only need to do this if you have upgraded from ActiveMatrix BPM version 4.0 or later.

Procedure

  • Locate the managedobjectlifecycle target in the CONFIG_HOME\bpm\amx.bpm.app\configuration\ec-event-rules.xml file, and replace the existing definition with the following definition:
    <channel name="default_lifecycle" target="managedobjectlifecycle">
        <rules>
           <rule name="BaseLifecycleRule" ruleOrder="1000">
              <filter>
                 <messageIds>
                   <messageId>BX_INSTANCE_PROCESS_STARTED</messageId>
                   <messageId>BX_INSTANCE_PROCESS_CANCELLED</messageId>
                   <messageId>BX_INSTANCE_PROCESS_COMPLETED</messageId>
                   <messageId>BX_INSTANCE_PROCESS_FAILED</messageId>
                   <messageId>BX_INSTANCE_PROCESS_FAILED_WHILE_CANCELLING</messageId>
                   <messageId>BX_INSTANCE_PROCESS_CANCELLED_WHILE_CANCELLING</messageId>
                 </messageIds>
              </filter>
              <action>
                 <messageProcess>TriggerProcess</messageProcess>
              </action>
           </rule>
        </rules>
    </channel>
    Note: The StagingAreaTrigger channel in the ec-event-rules.xml file MUST also contain the BX_TEMPLATE_DEPLOYED messageId. Do NOT delete this channel, nor the BX_TEMPLATE_DEPLOYED messageId in this channel.
    <channel name="default_stagingareatrigger" target="StagingAreaTrigger">
         <rules>
            <rule name="TriggerMessages" ruleOrder="800">
               <filter>
                   <messageIds>
                       .
                       .
                    <!-- BX SC Messages -->
                       .
                       .
                    <messageId>BX_TEMPLATE_DEPLOYED</messageId>