Solution # 127093  
Type TAN 
Created Date 16-Sep-2004 
Last Updated 15-Dec-2004 
Title The Default Auditing Configuration Does Not Properly Record WfAssignedActivity Information. 
Details Additional Information 
Description
-----------------
The default auditing configuration does not properly record WfAssignedActivity information. 
The event is being emitted against WfAssignedActivity, but the configAudit file specifies WfActivity. 
It seems to do string comparison not instanceof to determine if the event applies.

Alternate Technique
-----------------

Update configAudit to record events against WfAssignedActivity...

old:

<ConfigEntry class="wt.workflow.engine.WfActivity" enabled="true">
     <WfEngineEventEntry eventType="ACTIVITY_STATE_CHANGED" enabled="true" handler="wt.audit.configaudit.DefaultAuditEventRecorder"/>
     <WfEngineEventEntry eventType="ACTIVITY_CONTEXT_CHANGED" enabled="true" handler="wt.audit.configaudit.WfVariableAuditEventRecorder"/>
</ConfigEntry>

new: 

<ConfigEntry class="wt.workflow.work.WfAssignedActivity" enabled="true">
     <WfEngineEventEntry eventType="ACTIVITY_STATE_CHANGED" enabled="true" handler="wt.audit.configaudit.DefaultAuditEventRecorder"/>
     <WfEngineEventEntry eventType="ACTIVITY_CONTEXT_CHANGED" enabled="true" handler="wt.audit.configaudit.WfVariableAuditEventRecorder"/>
</ConfigEntry> 
