@Override
protected void doInTransactionWithoutResult(TransactionStatus status) {
workItemRep.updateWorkItemStateAndEndTime(workItem.getWorkItemId(), userId, StarFlowState.WORKITEM_COMPLETED, new Date());
//发布环节结束事件
ActivityFinishEvent endEvent = new ActivityFinishEvent(processEngine);
endEvent.setProcessInstance(processInstance);
endEvent.setActivityInst(activityInst);
endEvent.setPreActivityXml(activityXml);
processEngine.getApplicationContext().publishEvent(endEvent);
}
});
}