Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
Table of Contents |
---|
Code Block | ||
---|---|---|
| ||
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); |
public void addAuditTrail(java.lang.String clazz, java.lang.String method, java.lang.String message)
Simplify method to add audit trail and trigger audit trail event without passing method parameters and returned object
public void addAuditTrail(java.lang.String clazz, java.lang.String method, java.lang.String message, java.lang.Class[] paramTypes, java.lang.Object[] args, java.lang.Object returnObject)
Method to add audit trail and trigger audit trail event
public void clean()
Used by system to clear audit trail plugin caches