Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • The Audit Trail Plugin is triggered after a audit trail event to provide extra processing capabilities (e.g., capturing reporting data or user notification).

...

Abstract Class

org.joget.plugin.base.DefaultAuditTrailPlugin

...

Return is not used for now.

Sample Usage

Code Block
languagejava
   public Object execute(Map props) {
        AuditTrail auditTrail = (AuditTrail) props.get("auditTrail");
        if (auditTrail != null && auditTrail.getClazz().startsWith("org.joget.apps.form.dao.FormDataDaoImpl")) {
            String method = auditTrail.getMethod();
            
            if (method.equals("load")) {
                Class[] paramTypes = auditTrail.getParamTypes();
                Object[] params = auditTrail.getArgs();
                Object returnObject = auditTrail.getReturnObject();
                //do something
            }
        }
        return null;
    }

Audit Trail Event

Workflow Process Related Events

Please refer to WorkflowManager for extra information.

ClassMethodParamTypesParams (Args)Return
org.joget.workflow.model.service.WorkflowManagerImplactivityAbortjava.lang.String, java.lang.StringprocessId, activityDefIdvoid
org.joget.workflow.model.service.WorkflowManagerImplactivityStartjava.lang.String, java.lang.String, booleanprocessId, activityDefId, abortRunningActivitiesboolean
org.joget.workflow.model.service.WorkflowManagerImplactivityVariable

java.lang.String, java.lang.String, java.lang.Object

activityInstanceId, variableId, variableValuevoid
org.joget.workflow.model.service.WorkflowManagerImplactivityVariablesjava.lang.String, java.util.MapactivityInstanceId, variablesvoid
org.joget.workflow.model.service.WorkflowManagerImplassignmentAbortjava.lang.StringactivityIdvoid
org.joget.workflow.model.service.WorkflowManagerImplassignmentCompletejava.lang.StringactivityIdvoid
org.joget.workflow.model.service.WorkflowManagerImplassignmentCompletejava.lang.String, java.util.MapactivityId, variableMapvoid
org.joget.workflow.model.service.WorkflowManagerImplassignmentForceCompletejava.lang.String, java.lang.String, java.lang.String, java.lang.StringprocessDefId, processId, activityId, usernamevoid
org.joget.workflow.model.service.WorkflowManagerImplassignmentReassignjava.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.StringprocessDefId, processId, activityId, username, replaceUservoid
org.joget.workflow.model.service.WorkflowManagerImplassignmentVariablejava.lang.String, java.lang.String, java.lang.StringactivityId, variableName, variableValuevoid
org.joget.workflow.model.service.WorkflowManagerImplassignmentVariablesjava.lang.String, java.util.Map<java.lang.String, java.lang.String>activityId, variableMapvoid
 processAbortjava.lang.StringprocessIdboolean
org.joget.workflow.model.service.WorkflowManagerImplprocessCopyFromInstanceIdjava.lang.String, java.lang.String, booleancurrentProcessId, newProcessDefId, abortCurrentProcessorg.joget.workflow.model.WorkflowProcessResult
org.joget.workflow.model.service.WorkflowManagerImplprocessCreateWithoutStartjava.lang.StringprocessDefIdjava.lang.String
org.joget.workflow.model.service.WorkflowManagerImplprocessDeleteAndUnloadjava.lang.StringpackageIdvoid
org.joget.workflow.model.service.WorkflowManagerImplprocessDeleteAndUnloadVersionjava.lang.String, java.lang.StringpackageId, versionvoid
org.joget.workflow.model.service.WorkflowManagerImplprocessStartjava.lang.StringprocessDefIdorg.joget.workflow.model.WorkflowProcessResult
org.joget.workflow.model.service.WorkflowManagerImplprocessStartjava.lang.String, java.util.Map<java.lang.String, java.lang.String>processDefId, variablesorg.joget.workflow.model.WorkflowProcessResult
org.joget.workflow.model.service.WorkflowManagerImplprocessStartjava.lang.String, java.util.Map<java.lang.String, java.lang.String>, java.lang.StringprocessDefId, variables, startProcUsernameorg.joget.workflow.model.WorkflowProcessResult
org.joget.workflow.model.service.WorkflowManagerImplprocessStartjava.lang.String, java.lang.String, java.util.Map<java.lang.String, java.lang.String>, java.lang.String, java.lang.String, booleanprocessDefId, processId, variables, startProcUsername, parentProcessId, startManuallyorg.joget.workflow.model.WorkflowProcessResult
org.joget.workflow.model.service.WorkflowManagerImplprocessStartWithInstanceIdjava.lang.String, java.lang.String, java.util.Map<java.lang.String, java.lang.String>processDefId, processId, variablesorg.joget.workflow.model.WorkflowProcessResult
org.joget.workflow.model.service.WorkflowManagerImplprocessStartWithLinkingjava.lang.String, java.util.Map<java.lang.String, java.lang.String>, java.lang.String, java.lang.StringprocessDefId, variables, startProcUsername, parentProcessIdorg.joget.workflow.model.WorkflowProcessResult
org.joget.workflow.model.service.WorkflowManagerImplprocessUploadjava.lang.String, byte[]packageId, processDefinitionDatajava.lang.String
org.joget.workflow.model.service.WorkflowManagerImplprocessUploadWithoutUpdateMappingjava.lang.String, byte[]packageId, processDefinitionDatajava.lang.String
org.joget.workflow.model.service.WorkflowManagerImplprocessVariablejava.lang.String, java.lang.String, java.lang.ObjectprocessInstanceId, variableId, variableValuevoid
org.joget.workflow.model.service.WorkflowManagerImplprocessVariablesjava.lang.String, java.util.MapprocessInstanceId, variablesvoid
org.joget.workflow.model.service.WorkflowManagerImplreevaluateAssignmentsForActivityjava.lang.StringactivityInstanceIdvoid
org.joget.workflow.model.service.WorkflowManagerImplreevaluateAssignmentsForProcessjava.lang.StringprocInstanceIdvoid
org.joget.workflow.model.service.WorkflowManagerImplreevaluateAssignmentsForProcessesjava.lang.String[]procInstanceIdsvoid
org.joget.workflow.model.service.WorkflowManagerImplreevaluateAssignmentsForUserjava.lang.Stringusernamevoid
org.joget.workflow.model.service.WorkflowManagerImplremoveProcessInstancejava.lang.StringprocInstanceIdvoid
org.joget.workflow.shark.WorkflowAssignmentManagergetDefaultAssignmentsjava.lang.String, java.lang.String, org.joget.workflow.model.WorkflowProcessprocInstanceId, activityInstanceId, processInstancejava.util.List<java.lang.String>
     
     
     
     
     
     
     

 

Form Related Events

ClassMethodParamTypesParams (Args)Return
     
     

Organization Chart Related Events

ClassMethodParamTypesParams (Args)Return
     

Plugin Properties Options

...