- org.joget.apps.app.service.AuditTrailManager
- Under wflow-core module
- Service methods used to add audit trail and trigger audit trail event.
...
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); |
Methods
addAuditTrail
public void addAuditTrail(java.lang.String clazz, java.lang.String method, java.lang.String message)
...