审计追踪插件

Skip to end of metadata



Go to start of metadata


用法

抽象类

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 目前还没有被使用。


用法

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了解更多信息。

Class

Method

ParamTypes

Params (Args)

Return

org.joget.workflow.model.service.WorkflowManagerImplactivityAbortjava.lang.String, java.lang.StringprocessId, activityDefIdvoidorg.joget.workflow.model.service.WorkflowManagerImplactivityStartjava.lang.String, java.lang.String, booleanprocessId, activityDefId, abortRunningActivitiesbooleanorg.joget.workflow.model.service.WorkflowManagerImplactivityVariablejava.lang.String, java.lang.String, java.lang.Object

activityInstanceId, variableId, variableValuevoidorg.joget.workflow.model.service.WorkflowManagerImplactivityVariablesjava.lang.String, java.util.MapactivityInstanceId, variablesvoidorg.joget.workflow.model.service.WorkflowManagerImplassignmentAbortjava.lang.StringactivityIdvoidorg.joget.workflow.model.service.WorkflowManagerImplassignmentCompletejava.lang.StringactivityIdvoidorg.joget.workflow.model.service.WorkflowManagerImplassignmentCompletejava.lang.String, java.util.MapactivityId, variableMapvoidorg.joget.workflow.model.service.WorkflowManagerImplassignmentForceCompletejava.lang.String, java.lang.String, java.lang.String, java.lang.StringprocessDefId, processId, activityId, usernamevoidorg.joget.workflow.model.service.WorkflowManagerImplassignmentReassignjava.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.StringprocessDefId, processId, activityId, username, replaceUservoidorg.joget.workflow.model.service.WorkflowManagerImplassignmentReassignUserjava.lang.StringactivityIdvoidorg.joget.workflow.model.service.WorkflowManagerImplassignmentVariablejava.lang.String, java.lang.String, java.lang.StringactivityId, variableName, variableValuevoidorg.joget.workflow.model.service.WorkflowManagerImplassignmentVariablesjava.lang.String, java.util.Map<java.lang.String, java.lang.String>activityId, variableMapvoidorg.joget.workflow.model.service.WorkflowManagerImplprocessAbortjava.lang.StringprocessIdbooleanorg.joget.workflow.model.service.WorkflowManagerImplprocessCompletedjava.lang.StringprocessIdvoidorg.joget.workflow.model.service.WorkflowManagerImplprocessCopyFromInstanceIdjava.lang.String, java.lang.String, booleancurrentProcessId, newProcessDefId, abortCurrentProcessorg.joget.workflow.model.WorkflowProcessResultorg.joget.workflow.model.service.WorkflowManagerImplprocessCreateWithoutStartjava.lang.StringprocessDefIdjava.lang.Stringorg.joget.workflow.model.service.WorkflowManagerImplprocessDeleteAndUnloadjava.lang.StringpackageIdvoidorg.joget.workflow.model.service.WorkflowManagerImplprocessDeleteAndUnloadVersionjava.lang.String, java.lang.StringpackageId, versionvoidorg.joget.workflow.model.service.WorkflowManagerImplprocessStartjava.lang.StringprocessDefIdorg.joget.workflow.model.WorkflowProcessResultorg.joget.workflow.model.service.WorkflowManagerImplprocessStartjava.lang.String, java.util.Map<java.lang.String, java.lang.String>processDefId, variablesorg.joget.workflow.model.WorkflowProcessResultorg.joget.workflow.model.service.WorkflowManagerImplprocessStartjava.lang.String, java.util.Map<java.lang.String, java.lang.String>, java.lang.StringprocessDefId, variables, startProcUsernameorg.joget.workflow.model.WorkflowProcessResultorg.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.WorkflowProcessResultorg.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.WorkflowProcessResultorg.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.WorkflowProcessResultorg.joget.workflow.model.service.WorkflowManagerImplprocessUploadjava.lang.String, byte[]packageId, processDefinitionDatajava.lang.Stringorg.joget.workflow.model.service.WorkflowManagerImplprocessUploadWithoutUpdateMappingjava.lang.String, byte[]packageId, processDefinitionDatajava.lang.Stringorg.joget.workflow.model.service.WorkflowManagerImplprocessVariablejava.lang.String, java.lang.String, java.lang.ObjectprocessInstanceId, variableId, variableValuevoidorg.joget.workflow.model.service.WorkflowManagerImplprocessVariablesjava.lang.String, java.util.MapprocessInstanceId, variablesvoidorg.joget.workflow.model.service.WorkflowManagerImplreevaluateAssignmentsForActivityjava.lang.StringactivityInstanceIdvoidorg.joget.workflow.model.service.WorkflowManagerImplreevaluateAssignmentsForProcessjava.lang.StringprocInstanceIdvoidorg.joget.workflow.model.service.WorkflowManagerImplreevaluateAssignmentsForProcessesjava.lang.String[]procInstanceIdsvoidorg.joget.workflow.model.service.WorkflowManagerImplreevaluateAssignmentsForUserjava.lang.Stringusernamevoidorg.joget.workflow.model.service.WorkflowManagerImplremoveProcessInstancejava.lang.StringprocInstanceIdvoidorg.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.WorkflowAssignmentworkflowAssignmentvoidorg.joget.workflow.shark.WorkflowToolActivityHandlerexecuteToolorg.joget.workflow.model.WorkflowAssignmentworkflowAssignmentvoidorg.joget.workflow.shark.WorkflowToolActivityHandlerexecuteToolCompletedorg.joget.workflow.model.WorkflowAssignmentworkflowAssignmentvoid

 


表单相关事件

请参考FormDataDao 了解更多信息。

Class

Method

ParamTypes

Params (Args)

Return

org.joget.apps.form.dao.FormDataDaoImplcountorg.joget.apps.form.model.Form, java.lang.String, java.lang.Object[]form, condition, paramsjava.lang.Longorg.joget.apps.form.dao.FormDataDaoImplcountjava.lang.String, java.lang.String, java.lang.String, java.lang.Object[]formDefId, tableName, condition, paramsjava.lang.Longorg.joget.apps.form.dao.FormDataDaoImpldeleteorg.joget.apps.form.model.Form, java.lang.String[]form, primaryKeyValuesvoidorg.joget.apps.form.dao.FormDataDaoImpldeletejava.lang.String, java.lang.String, java.lang.String[]formDefId, tableName, primaryKeyValuesvoidorg.joget.apps.form.dao.FormDataDaoImpldeletejava.lang.String, java.lang.String, org.joget.apps.form.model.FormRowSetformDefId, tableName, rowsvoidorg.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.FormRowSetorg.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.FormRowSetorg.joget.apps.form.dao.FormDataDaoImplfindPrimaryKeyorg.joget.apps.form.model.Form, java.lang.String, java.lang.Stringform, fieldName, valuejava.lang.Stringorg.joget.apps.form.dao.FormDataDaoImplfindPrimaryKeyjava.lang.String, java.lang.String, java.lang.String, java.lang.StringformDefId, tableName, fieldName, valuejava.lang.Stringorg.joget.apps.form.dao.FormDataDaoImplloadorg.joget.apps.form.model.Form, java.lang.Stringform, primaryKeyorg.joget.apps.form.model.FormRoworg.joget.apps.form.dao.FormDataDaoImplloadjava.lang.String, java.lang.String, java.lang.StringformDefId, tableName, primaryKeyorg.joget.apps.form.model.FormRoworg.joget.apps.form.dao.FormDataDaoImplloadWithoutTransactionorg.joget.apps.form.model.Form, java.lang.Stringform, primaryKeyorg.joget.apps.form.model.FormRoworg.joget.apps.form.dao.FormDataDaoImplloadWithoutTransactionjava.lang.String, java.lang.String, java.lang.StringformDefId, tableName, primaryKeyorg.joget.apps.form.model.FormRoworg.joget.apps.form.dao.FormDataDaoImplsaveOrUpdateorg.joget.apps.form.model.Form, org.joget.apps.form.model.FormRowSetform, rowSetvoidorg.joget.apps.form.dao.FormDataDaoImplsaveOrUpdatejava.lang.String, java.lang.String, org.joget.apps.form.model.FormRowSetformDefId, tableName, rowSetvoidorg.joget.apps.form.dao.FormDataDaoImplupdateSchemaorg.joget.apps.form.model.Form, org.joget.apps.form.model.FormRowSetform, rowSetvoidorg.joget.apps.form.dao.FormDataDaoImplupdateSchemajava.lang.String, java.lang.String, org.joget.apps.form.model.FormRowSetformDefId, tableName, rowSetvoid

Organization Chart Related Events

Class

Method

ParamTypes

Params (Args)

Return

org.joget.apps.app.web.SessionListenerlogoutjava.lang.Stringusernamebooleanorg.joget.apps.workflow.security.WorkflowAuthenticationProviderauthenticatejava.lang.Stringusernamebooleanorg.joget.apps.workflow.security.WorkflowHttpAuthProcessingFilterauthenticatejava.lang.Stringusernamebooleanorg.joget.directory.dao.DepartmentDaoImpladdDepartmentorg.joget.directory.model.Departmentdepartmentjava.lang.Booleanorg.joget.directory.dao.DepartmentDaoImplcountDepartmentsjava.lang.String, java.lang.Object[]condition, paramsjava.lang.Longorg.joget.directory.dao.DepartmentDaoImpldeleteDepartmentjava.lang.Stringidjava.lang.Booleanorg.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.Booleanorg.joget.directory.dao.EmploymentDaoImpladdEmploymentorg.joget.directory.model.Employmentemploymentjava.lang.Booleanorg.joget.directory.dao.EmploymentDaoImplassignUserAsDepartmentHODjava.lang.String, java.lang.StringuserId, departmentIdjava.lang.Booleanorg.joget.directory.dao.EmploymentDaoImplassignUserReportTojava.lang.String, java.lang.StringuserId, reportToUserIdjava.lang.Booleanorg.joget.directory.dao.EmploymentDaoImplassignUserToDepartmentjava.lang.String, java.lang.StringuserId, departmentIdjava.lang.Booleanorg.joget.directory.dao.EmploymentDaoImplassignUserToGradejava.lang.String, java.lang.StringuserId, gradeIdjava.lang.Booleanorg.joget.directory.dao.EmploymentDaoImplassignUserToOrganizationjava.lang.String, java.lang.StringuserId, organizationIdjava.lang.Booleanorg.joget.directory.dao.EmploymentDaoImplcountEmploymentsjava.lang.String, java.lang.Object[]condition, paramsjava.lang.Longorg.joget.directory.dao.EmploymentDaoImpldeleteEmploymentjava.lang.Stringidjava.lang.Booleanorg.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.Booleanorg.joget.directory.dao.EmploymentDaoImplupdateEmploymentorg.joget.directory.model.Employmentemploymentjava.lang.Booleanorg.joget.directory.dao.EmploymentDaoImplunassignUserFromDepartmentjava.lang.String, java.lang.StringuserId, departmentIdjava.lang.Booleanorg.joget.directory.dao.EmploymentDaoImplunassignUserFromGradejava.lang.String, java.lang.StringuserId, gradeIdjava.lang.Booleanorg.joget.directory.dao.EmploymentDaoImplunassignUserFromOrganizationjava.lang.String, java.lang.StringuserId, organizationIdjava.lang.Booleanorg.joget.directory.dao.EmploymentDaoImplunassignUserReportTojava.lang.StringuserIdjava.lang.Booleanorg.joget.directory.dao.EmploymentReportToDaoImpladdEmploymentReportToorg.joget.directory.model.EmploymentReportToreportTojava.lang.Booleanorg.joget.directory.dao.EmploymentReportToDaoImpldeleteEmploymentReportTojava.lang.Stringidjava.lang.Booleanorg.joget.directory.dao.EmploymentReportToDaoImplupdateEmploymentReportToorg.joget.directory.model.EmploymentReportToreportTojava.lang.Booleanorg.joget.directory.dao.GradeDaoImpladdGradeorg.joget.directory.model.Gradegradejava.lang.Booleanorg.joget.directory.dao.GradeDaoImplcountGradesjava.lang.String, java.lang.Object[]condition, paramsjava.lang.Longorg.joget.directory.dao.GradeDaoImpldeleteGradejava.lang.Stringidjava.lang.Booleanorg.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.Booleanorg.joget.directory.dao.GroupDaoImpladdGrouporg.joget.directory.model.Groupgroupjava.lang.Booleanorg.joget.directory.dao.GroupDaoImplcountGroupsjava.lang.String, java.lang.Object[]condition, paramsjava.lang.Longorg.joget.directory.dao.GroupDaoImpldeleteGroupjava.lang.Stringidjava.lang.Booleanorg.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.Booleanorg.joget.directory.dao.OrganizationDaoImpladdOrganizationorg.joget.directory.model.Organizationorganizationjava.lang.Booleanorg.joget.directory.dao.OrganizationDaoImplcountOrganizationsjava.lang.String, java.lang.Object[]condition, paramsjava.lang.Longorg.joget.directory.dao.OrganizationDaoImpldeleteOrganizationjava.lang.Stringidjava.lang.Booleanorg.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.Booleanorg.joget.directory.dao.RoleDaoImpladdRoleorg.joget.directory.model.Rolerolejava.lang.Booleanorg.joget.directory.dao.RoleDaoImplcountRolesjava.lang.String, java.lang.Object[]condition, paramsjava.lang.Longorg.joget.directory.dao.RoleDaoImpldeleteRolejava.lang.Stringidjava.lang.Booleanorg.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.Booleanorg.joget.directory.dao.UserDaoImpladdUserorg.joget.directory.model.Useruserjava.lang.Booleanorg.joget.directory.dao.UserDaoImplassignUserToGroupjava.lang.String, java.lang.Stringusername, groupIdjava.lang.Booleanorg.joget.directory.dao.UserDaoImplcountUsersjava.lang.String, java.lang.Object[] java.lang.Longorg.joget.directory.dao.UserDaoImpldeleteUserjava.lang.Stringusernamejava.lang.Booleanorg.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.Booleanorg.joget.directory.dao.UserDaoImplupdateUserorg.joget.directory.model.Useruserjava.lang.Booleanorg.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)


文档更新时间: 2018-11-06 06:04   作者:李庆