提交 68e71df4 编写于 作者: O o2sword

流程调用的work缺少creatorUnitLevelName字段

上级 f18d01f6
......@@ -2,6 +2,23 @@ package com.x.processplatform.core.entity.element;
import com.x.base.core.entity.JpaObject;
/**
* 流程节点枚举类型
* agent:脚本节点
* begin:开始节点
* cancel:取消节点
* choice:选择活动节点
* delay:定时活动节点
* end:结束节点
* embed:流程调用节点
* invoke:服务调用节点
* manual:人工节点
* merge:合并活动节点
* message:
* parallel:并行活动节点
* service:服务节点
* split:拆分节点
*/
public enum ActivityType {
agent, begin, cancel, choice, delay, end, embed, invoke, manual, merge, message, parallel, service, split;
......
......@@ -27,6 +27,7 @@ import com.x.base.core.project.http.EffectivePerson;
import com.x.base.core.project.jaxrs.WoId;
import com.x.base.core.project.logger.Logger;
import com.x.base.core.project.logger.LoggerFactory;
import com.x.base.core.project.organization.Unit;
import com.x.base.core.project.tools.ListTools;
import com.x.base.core.project.tools.StringTools;
import com.x.processplatform.core.entity.content.Attachment;
......@@ -86,6 +87,10 @@ class ActionAssignCreate extends BaseAction {
work.setCreatorIdentity(identityDn);
work.setCreatorPerson(business.organization().person().getWithIdentity(identityDn));
work.setCreatorUnit(business.organization().unit().getWithIdentity(identityDn));
if (StringUtils.isNotEmpty(work.getCreatorUnit())) {
Unit unit = business.organization().unit().getObject(work.getCreatorUnit());
work.setCreatorUnitLevelName(unit.getLevelName());
}
/* 通过赋值调用的是不能被作为草稿删除的 */
work.setDataChanged(true);
if (ListTools.isNotEmpty(wi.getAttachmentList())) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册