提交 36ffbe38 编写于 作者: O o2null

Merge branch 'feature/java11' into 'develop'

record thread

See merge request o2oa/o2oa!1572
...@@ -330,13 +330,20 @@ class ActionProcessing extends BaseAction { ...@@ -330,13 +330,20 @@ class ActionProcessing extends BaseAction {
record.getProperties().setMediaOpinion(taskCompleted.getMediaOpinion()); record.getProperties().setMediaOpinion(taskCompleted.getMediaOpinion());
} }
} }
WoId resp = ThisApplication.context().applications() new Thread(() -> {
.postQuery(effectivePerson.getDebugger(), x_processplatform_service_processing.class, try {
Applications.joinQueryUri("record", "job", this.work.getJob()), record, this.task.getJob()) WoId resp = ThisApplication.context().applications()
.getData(WoId.class); .postQuery(effectivePerson.getDebugger(), x_processplatform_service_processing.class,
if (StringUtils.isBlank(resp.getId())) { Applications.joinQueryUri("record", "job", this.work.getJob()), record,
throw new ExceptionWorkProcessing(this.work.getId()); this.task.getJob())
} .getData(WoId.class);
if (StringUtils.isBlank(resp.getId())) {
throw new ExceptionWorkProcessing(this.work.getId());
}
} catch (Exception e) {
logger.error(e);
}
}, String.format("%record:%s", ActionProcessing.class.getName(), this.task.getId())).start();
} }
private void processingUpdateTaskCompleted() throws Exception { private void processingUpdateTaskCompleted() throws Exception {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册