Versions Compared

Key

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

Table of Contents

用法

抽象类

org.joget.plugin.base.DefaultAuditTrailPlugin

Method Detail

Abstract Methods
execute
public abstract java.lang.Object execute(java.util.Map props)

...

 org.joget.apps.app.model.AuditTrail 对象作为“auditTrail”属性传递。

Return 目前还没有被使用。

用法

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;
    }

审计跟踪事件

工作流程相关事件

请参考  WorkflowManager了解更多信息。

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.WorkflowManagerImplassignmentReassignUserjava.lang.StringactivityIdvoid
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
org.joget.workflow.model.service.WorkflowManagerImplprocessAbortjava.lang.StringprocessIdboolean
org.joget.workflow.model.service.WorkflowManagerImplprocessCompletedjava.lang.StringprocessIdvoid
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>
org.joget.workflow.shark.WorkflowToolActivityHandlerexecuteActivityorg.joget.workflow.model.WorkflowAssignmentworkflowAssignmentvoid
org.joget.workflow.shark.WorkflowToolActivityHandlerexecuteToolorg.joget.workflow.model.WorkflowAssignmentworkflowAssignmentvoid
org.joget.workflow.shark.WorkflowToolActivityHandlerexecuteToolCompletedorg.joget.workflow.model.WorkflowAssignmentworkflowAssignmentvoid

 

表单相关事件

请参考FormDataDao 了解更多信息。

ClassMethodParamTypesParams (Args)Return
org.joget.apps.form.dao.FormDataDaoImplcountorg.joget.apps.form.model.Form, java.lang.String, java.lang.Object[]form, condition, paramsjava.lang.Long
org.joget.apps.form.dao.FormDataDaoImplcountjava.lang.String, java.lang.String, java.lang.String, java.lang.Object[]formDefId, tableName, condition, paramsjava.lang.Long
org.joget.apps.form.dao.FormDataDaoImpldeleteorg.joget.apps.form.model.Form, java.lang.String[]form, primaryKeyValuesvoid
org.joget.apps.form.dao.FormDataDaoImpldeletejava.lang.String, java.lang.String, java.lang.String[]formDefId, tableName, primaryKeyValuesvoid
org.joget.apps.form.dao.FormDataDaoImpldeletejava.lang.String, java.lang.String, org.joget.apps.form.model.FormRowSetformDefId, tableName, rowsvoid
org.joget.apps.form.dao.FormDataDaoImplfindorg.joget.apps.form.model.Form, java.lang.String, java.lang.Object[], java.lang.String, java.lang.Boolean, java.lang.Integer, java.lang.Integerform, condition, params, sort, desc, start, rowsorg.joget.apps.form.model.FormRowSet
org.joget.apps.form.dao.FormDataDaoImplfindjava.lang.String, java.lang.String, java.lang.String, java.lang.Object[], java.lang.String, java.lang.Boolean, java.lang.Integer, java.lang.IntegerformDefId, tableName, condition, params, sort, desc, start, rowsorg.joget.apps.form.model.FormRowSet
org.joget.apps.form.dao.FormDataDaoImplfindPrimaryKeyorg.joget.apps.form.model.Form, java.lang.String, java.lang.Stringform, fieldName, valuejava.lang.String
org.joget.apps.form.dao.FormDataDaoImplfindPrimaryKeyjava.lang.String, java.lang.String, java.lang.String, java.lang.StringformDefId, tableName, fieldName, valuejava.lang.String
org.joget.apps.form.dao.FormDataDaoImplloadorg.joget.apps.form.model.Form, java.lang.Stringform, primaryKeyorg.joget.apps.form.model.FormRow
org.joget.apps.form.dao.FormDataDaoImplloadjava.lang.String, java.lang.String, java.lang.StringformDefId, tableName, primaryKeyorg.joget.apps.form.model.FormRow
org.joget.apps.form.dao.FormDataDaoImplloadWithoutTransactionorg.joget.apps.form.model.Form, java.lang.Stringform, primaryKeyorg.joget.apps.form.model.FormRow
org.joget.apps.form.dao.FormDataDaoImplloadWithoutTransactionjava.lang.String, java.lang.String, java.lang.StringformDefId, tableName, primaryKeyorg.joget.apps.form.model.FormRow
org.joget.apps.form.dao.FormDataDaoImplsaveOrUpdateorg.joget.apps.form.model.Form, org.joget.apps.form.model.FormRowSetform, rowSetvoid
org.joget.apps.form.dao.FormDataDaoImplsaveOrUpdatejava.lang.String, java.lang.String, org.joget.apps.form.model.FormRowSetformDefId, tableName, rowSet void
org.joget.apps.form.dao.FormDataDaoImplupdateSchemaorg.joget.apps.form.model.Form, org.joget.apps.form.model.FormRowSetform, rowSetvoid
org.joget.apps.form.dao.FormDataDaoImplupdateSchemajava.lang.String, java.lang.String, org.joget.apps.form.model.FormRowSetformDefId, tableName, rowSetvoid

Organization Chart Related Events

ClassMethodParamTypesParams (Args)Return
org.joget.apps.app.web.SessionListenerlogoutjava.lang.Stringusernameboolean
org.joget.apps.workflow.security.WorkflowAuthenticationProviderauthenticatejava.lang.Stringusernameboolean
org.joget.apps.workflow.security.WorkflowHttpAuthProcessingFilterauthenticatejava.lang.Stringusernameboolean
org.joget.directory.dao.DepartmentDaoImpladdDepartmentorg.joget.directory.model.Departmentdepartmentjava.lang.Boolean
org.joget.directory.dao.DepartmentDaoImplcountDepartmentsjava.lang.String, java.lang.Object[]condition, paramsjava.lang.Long
org.joget.directory.dao.DepartmentDaoImpldeleteDepartmentjava.lang.Stringidjava.lang.Boolean
org.joget.directory.dao.DepartmentDaoImplfindDepartmentsjava.lang.String, java.lang.Object[], java.lang.String, java.lang.Boolean, java.lang.Integer, java.lang.Integercondition, params, sort, desc, start, rowsjava.util.Collection<org.joget.directory.model.Department>
org.joget.directory.dao.DepartmentDaoImplupdateDepartmentorg.joget.directory.model.Departmentdepartmentjava.lang.Boolean
org.joget.directory.dao.EmploymentDaoImpladdEmploymentorg.joget.directory.model.Employmentemploymentjava.lang.Boolean
org.joget.directory.dao.EmploymentDaoImplassignUserAsDepartmentHODjava.lang.String, java.lang.StringuserId, departmentIdjava.lang.Boolean
org.joget.directory.dao.EmploymentDaoImplassignUserReportTojava.lang.String, java.lang.StringuserId, reportToUserIdjava.lang.Boolean
org.joget.directory.dao.EmploymentDaoImplassignUserToDepartmentjava.lang.String, java.lang.StringuserId, departmentIdjava.lang.Boolean
org.joget.directory.dao.EmploymentDaoImplassignUserToGradejava.lang.String, java.lang.StringuserId, gradeIdjava.lang.Boolean
org.joget.directory.dao.EmploymentDaoImplassignUserToOrganizationjava.lang.String, java.lang.StringuserId, organizationIdjava.lang.Boolean
org.joget.directory.dao.EmploymentDaoImplcountEmploymentsjava.lang.String, java.lang.Object[]condition, paramsjava.lang.Long
org.joget.directory.dao.EmploymentDaoImpldeleteEmploymentjava.lang.Stringidjava.lang.Boolean
org.joget.directory.dao.EmploymentDaoImplfindEmploymentsjava.lang.String, java.lang.Object[], java.lang.String, java.lang.Boolean, java.lang.Integer, java.lang.Integercondition, params, sort, desc, start, rowsjava.util.Collection<org.joget.directory.model.Employment>
org.joget.directory.dao.EmploymentDaoImplunassignUserAsDepartmentHODjava.lang.String, java.lang.StringuserId, departmentIdjava.lang.Boolean
org.joget.directory.dao.EmploymentDaoImplupdateEmploymentorg.joget.directory.model.Employmentemploymentjava.lang.Boolean
org.joget.directory.dao.EmploymentDaoImplunassignUserFromDepartmentjava.lang.String, java.lang.StringuserId, departmentIdjava.lang.Boolean
org.joget.directory.dao.EmploymentDaoImplunassignUserFromGradejava.lang.String, java.lang.StringuserId, gradeIdjava.lang.Boolean
org.joget.directory.dao.EmploymentDaoImplunassignUserFromOrganizationjava.lang.String, java.lang.StringuserId, organizationIdjava.lang.Boolean
org.joget.directory.dao.EmploymentDaoImplunassignUserReportTojava.lang.StringuserIdjava.lang.Boolean
org.joget.directory.dao.EmploymentReportToDaoImpladdEmploymentReportToorg.joget.directory.model.EmploymentReportToreportTojava.lang.Boolean
org.joget.directory.dao.EmploymentReportToDaoImpldeleteEmploymentReportTojava.lang.Stringidjava.lang.Boolean
org.joget.directory.dao.EmploymentReportToDaoImplupdateEmploymentReportToorg.joget.directory.model.EmploymentReportToreportTojava.lang.Boolean
org.joget.directory.dao.GradeDaoImpladdGradeorg.joget.directory.model.Gradegradejava.lang.Boolean
org.joget.directory.dao.GradeDaoImplcountGradesjava.lang.String, java.lang.Object[]condition, paramsjava.lang.Long
org.joget.directory.dao.GradeDaoImpldeleteGradejava.lang.Stringidjava.lang.Boolean
org.joget.directory.dao.GradeDaoImplfindGradesjava.lang.String, java.lang.Object[], java.lang.String, java.lang.Boolean, java.lang.Integer, java.lang.Integercondition, params, sort, desc, start, rowsjava.util.Collection<org.joget.directory.model.Grade>
org.joget.directory.dao.GradeDaoImplupdateGradeorg.joget.directory.model.Gradegradejava.lang.Boolean
org.joget.directory.dao.GroupDaoImpladdGrouporg.joget.directory.model.Groupgroupjava.lang.Boolean
org.joget.directory.dao.GroupDaoImplcountGroupsjava.lang.String, java.lang.Object[]condition, paramsjava.lang.Long
org.joget.directory.dao.GroupDaoImpldeleteGroupjava.lang.Stringidjava.lang.Boolean
org.joget.directory.dao.GroupDaoImplfindGroupsjava.lang.String, java.lang.Object[], java.lang.String, java.lang.Boolean, java.lang.Integer, java.lang.Integercondition, params, sort, desc, start, rowsjava.util.Collection<org.joget.directory.model.Group>
org.joget.directory.dao.GroupDaoImplupdateGrouporg.joget.directory.model.Groupgroupjava.lang.Boolean
org.joget.directory.dao.OrganizationDaoImpladdOrganizationorg.joget.directory.model.Organizationorganizationjava.lang.Boolean
org.joget.directory.dao.OrganizationDaoImplcountOrganizationsjava.lang.String, java.lang.Object[]condition, paramsjava.lang.Long
org.joget.directory.dao.OrganizationDaoImpldeleteOrganizationjava.lang.Stringidjava.lang.Boolean
org.joget.directory.dao.OrganizationDaoImplfindOrganizationsjava.lang.String, java.lang.Object[], java.lang.String, java.lang.Boolean, java.lang.Integer, java.lang.Integercondition, params, sort, desc, start, rowsjava.util.Collection<org.joget.directory.model.Organization>
org.joget.directory.dao.OrganizationDaoImplupdateOrganizationorg.joget.directory.model.Organizationorganizationjava.lang.Boolean
org.joget.directory.dao.RoleDaoImpladdRoleorg.joget.directory.model.Rolerolejava.lang.Boolean
org.joget.directory.dao.RoleDaoImplcountRolesjava.lang.String, java.lang.Object[]condition, paramsjava.lang.Long
org.joget.directory.dao.RoleDaoImpldeleteRolejava.lang.Stringidjava.lang.Boolean
org.joget.directory.dao.RoleDaoImplfindRolesjava.lang.String, java.lang.Object[], java.lang.String, java.lang.Boolean, java.lang.Integer, java.lang.Integercondition, params, sort, desc, start, rowsjava.util.Collection<org.joget.directory.model.Role>
org.joget.directory.dao.RoleDaoImplupdateRoleorg.joget.directory.model.Rolerolejava.lang.Boolean
org.joget.directory.dao.UserDaoImpladdUserorg.joget.directory.model.Useruserjava.lang.Boolean
org.joget.directory.dao.UserDaoImplassignUserToGroupjava.lang.String, java.lang.Stringusername, groupIdjava.lang.Boolean
org.joget.directory.dao.UserDaoImplcountUsersjava.lang.String, java.lang.Object[] java.lang.Long
org.joget.directory.dao.UserDaoImpldeleteUserjava.lang.Stringusernamejava.lang.Boolean
org.joget.directory.dao.UserDaoImplfindUsersjava.lang.String, java.lang.Object[], java.lang.String, java.lang.Boolean, java.lang.Integer, java.lang.Integer java.util.Collection<org.joget.directory.model.User>
org.joget.directory.dao.UserDaoImplunassignUserFromGroupjava.lang.String, java.lang.Stringusername, groupIdjava.lang.Boolean
org.joget.directory.dao.UserDaoImplupdateUserorg.joget.directory.model.Useruserjava.lang.Boolean
org.joget.directory.dao.UserDaoImplupdateUserEmploymentInfojava.lang.String, org.joget.directory.model.Employmentusername, infojava.lang.Boolean

插件属性配置

教程

相关社区版插件

  • Process Data Collector
    org.joget.apps.app.lib.ProcessDataCollectorAuditTrail (wflow-core)
  • User Notification
    org.joget.apps.app.lib.UserNotificationAuditTrail (wflow-core)

...