[Bug][force-success] force success add end time (#15144)
Co-authored-by: Rick Cheng <rickchengx@gmail.com>
This commit is contained in:
parent
d8e820c4b9
commit
e5a208f363
|
|
@ -255,6 +255,7 @@ public class TaskInstanceServiceImpl extends BaseServiceImpl implements TaskInst
|
|||
|
||||
// change the state of the task instance
|
||||
task.setState(TaskExecutionStatus.FORCED_SUCCESS);
|
||||
task.setEndTime(new Date());
|
||||
int changedNum = taskInstanceMapper.updateById(task);
|
||||
if (changedNum > 0) {
|
||||
processService.forceProcessInstanceSuccessByTaskInstanceId(taskInstanceId);
|
||||
|
|
|
|||
Loading…
Reference in New Issue