AnsweredAssumed Answered

How can I audit my java methods?

Question asked by saruqui on May 16, 2013
Latest reply on May 20, 2013 by saruqui
I don't know what steps do I need to follow in order to audit my own methods. I've tried this:

public interface WfService {

   WorkflowPath initWf(NodeRef node) throws Exception;


– wfAudit.xml –
<Audit xmlns="" xmlns:xsi=""
   xsi:schemaLocation=" alfresco-audit-3.2.xsd">
      <DataExtractor name="simpleValue" registeredName="auditModel.extractor.simpleValue" />
      <DataExtractor name="nullValue" registeredName="auditModel.extractor.nullValue" />
      <DataGenerator name="currentUser" registeredName="auditModel.generator.user" />
      <PathMap source="/alfresco-api/post/WfService/initWf" target="/InitWf" />
   <Application name="InitWf" key="InitWf">
      <AuditPath key="in">
         <RecordValue key="node" dataExtractor="simpleValue" dataSource="/InitWf/args/node" />
      <AuditPath key="out">
         <RecordValue key="value" dataExtractor="simpleValue" dataSource="/InitWf/result" />


Do I have to add anything else (setup, annotations…)?

The audit configuration setting is enabled so I can audit Alfresco services.

I'm using Alfresco 4.0.2

Thanks in advance