/* (non-Javadoc)
* @see com.starit.wf.engine.domain.service.IActivityInstService#terminateActivity(long)
*/
public void terminateActivity(final long activityInstId) {
transactionTemplate.execute(new TransactionCallbackWithoutResult() {
@Override
protected void doInTransactionWithoutResult(TransactionStatus status) {
ActivityInst activityInst = actInstRep.findActivityInst(activityInstId);
ProcessInstance processInstance = procInstRep.findProcessInstance(activityInst.getProcessInstId());
EventUtil.publishActivityTerminalEvent(processEngine, processInstance, activityInst);