...
Code Block | ||||
---|---|---|---|---|
| ||||
public void doSomething(CRMDOAccountingPeriod accountingPeriod) throws Exception { Logger logger = LogUtil.getLogger(getClass()); logger.debug("Invoked doSomething()"); } |
If the method/file is asynchronous:
Code Block | ||||
---|---|---|---|---|
| ||||
@Asynchronous
public void execute(@Observes(during=TransactionPhase.AFTER_SUCCESS) WorkflowRuleEvent event) {
setLogger(event.getSession());
} |