update - 完善注释
This commit is contained in:
parent
ee718f7882
commit
182174e70d
@ -57,6 +57,7 @@ public class AutoPassTransactionListener implements TransactionListener {
|
||||
pass.setOperationDesc("自动通过");
|
||||
String jobId = commandExecutor.execute(new CustomApproveTaskAsyncCmd(pass));
|
||||
|
||||
// 重置任务,因为上面的 cmd 和这个 cmd 的 lock 对象不一致
|
||||
JobServiceConfiguration jobServiceConfiguration = springProcessEngineConfiguration.getJobServiceConfiguration();
|
||||
commandExecutor.execute(new ResetExpiredJobsCmd(Collections.singletonList(jobId), jobServiceConfiguration.getJobEntityManager(), jobServiceConfiguration));
|
||||
|
||||
|
||||
@ -46,6 +46,7 @@ public class AutoRejectTransactionListener implements TransactionListener {
|
||||
reject.setOperationDesc("自动驳回");
|
||||
String jobId = commandExecutor.execute(new CustomRejectionTaskAsyncCmd(reject));
|
||||
|
||||
// 重置任务,因为上面的 cmd 和这个 cmd 的 lock 对象不一致
|
||||
JobServiceConfiguration jobServiceConfiguration = springProcessEngineConfiguration.getJobServiceConfiguration();
|
||||
commandExecutor.execute(new ResetExpiredJobsCmd(Collections.singletonList(jobId), jobServiceConfiguration.getJobEntityManager(), jobServiceConfiguration));
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user