Versions Compared

Key

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

Table of Contents

English

Description

Thai

ลักษณะ

  • org.joget.apps.app.service.AuditTrailManager
  • Under wflow-core module
  • Service methods used to add audit trail and trigger audit trail event.

...

Code Block
languagejava
import org.joget.apps.app.service.AppUtil;
import org.joget.apps.app.service.AuditTrailManager;


AuditTrailManager auditTrailManager = (AuditTrailManager) AppUtil.getApplicationContext().getBean("auditTrailManager");
 
String clazz = "org.joget.sample.SamplePlugin";
String method = "SayHello";
String message = "SayHello called by user (admin)";
Class[] paramTypes = new Class[] {String.class};
Object[] args = new Object[] {"admin"};
Object returnObject = null;
 
//add audit trail and trigger an audit trail event
auditTrailManager.addAuditTrail(clazz, method, message, paramTypes, args, returnObject);

Methods

Thai

กระบวนการ

addAuditTrail
public void addAuditTrail(java.lang.String clazz, java.lang.String method, java.lang.String message)

...