优化统一涉及参与者注释说明
This commit is contained in:
parent
a191a11bf8
commit
73915b5887
@ -191,9 +191,9 @@ public class FlowLongContext {
|
||||
configEngine.configure(this);
|
||||
|
||||
if (banner) {
|
||||
System.err.println("┌─┐┬ ┌─┐┬ ┬┬ ┌─┐┌┐┌┌─┐");
|
||||
System.err.println("├┤ │ │ │││││ │ │││││ ┬");
|
||||
System.err.println("└ ┴─┘└─┘└┴┘┴─┘└─┘┘└┘└─┘ 1.1.1");
|
||||
System.out.println("┌─┐┬ ┌─┐┬ ┬┬ ┌─┐┌┐┌┌─┐");
|
||||
System.out.println("├┤ │ │ │││││ │ │││││ ┬");
|
||||
System.out.println("└ ┴─┘└─┘└┴┘┴─┘└─┘┘└┘└─┘ 1.1.2");
|
||||
}
|
||||
|
||||
return this;
|
||||
|
@ -27,7 +27,10 @@ public class DynamicAssignee {
|
||||
*/
|
||||
private List<NodeAssignee> assigneeList;
|
||||
/**
|
||||
* 分配类型 0,用户 1,角色 2,部门 该属性决定 assigneeList 属性是分配到人还是角色
|
||||
* 分配类型 0,用户 1,角色 2,部门 该属性决定 assigneeList 属性是分配到人还是角色
|
||||
* <p>
|
||||
* 需要与参数 {@link com.aizuda.bpm.engine.entity.FlwTaskActor#actorType} 值保持一致
|
||||
* </p>
|
||||
*/
|
||||
private Integer type;
|
||||
|
||||
@ -41,23 +44,23 @@ public class DynamicAssignee {
|
||||
return this;
|
||||
}
|
||||
|
||||
public static DynamicAssignee ofNodeModel(NodeModel nodeModel) {
|
||||
return builder().assigneeList(nodeModel.getNodeAssigneeList()).type(nodeModel.getType());
|
||||
}
|
||||
|
||||
public static DynamicAssignee builder() {
|
||||
return new DynamicAssignee();
|
||||
}
|
||||
|
||||
public static DynamicAssignee assigneeUserList(List<NodeAssignee> assigneeList) {
|
||||
return builder().assigneeList(assigneeList).type(0);
|
||||
return of(0, assigneeList);
|
||||
}
|
||||
|
||||
public static DynamicAssignee assigneeRoleList(List<NodeAssignee> assigneeList) {
|
||||
return builder().assigneeList(assigneeList).type(1);
|
||||
return of(1, assigneeList);
|
||||
}
|
||||
|
||||
public static DynamicAssignee assigneeDeptList(List<NodeAssignee> assigneeList) {
|
||||
return builder().assigneeList(assigneeList).type(2);
|
||||
return of(2, assigneeList);
|
||||
}
|
||||
|
||||
public static DynamicAssignee of(Integer type, List<NodeAssignee> assigneeList) {
|
||||
return builder().type(type).assigneeList(assigneeList);
|
||||
}
|
||||
}
|
||||
|
@ -413,16 +413,6 @@ public class ModelHelper {
|
||||
return "flk" + System.currentTimeMillis();
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取动态分配处理人员
|
||||
*
|
||||
* @param rootNodeModel 根节点模型
|
||||
* @return 动态分配处理人员
|
||||
*/
|
||||
public static Map<String, DynamicAssignee> getAssigneeMap(NodeModel rootNodeModel) {
|
||||
return getRootNodeAllChildNodes(rootNodeModel).stream().collect(Collectors.toMap(NodeModel::getNodeKey, DynamicAssignee::ofNodeModel));
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取指定节点KEY模型信息
|
||||
*
|
||||
|
@ -25,9 +25,9 @@ import java.util.List;
|
||||
public class NodeCandidate implements Serializable {
|
||||
|
||||
/**
|
||||
* 候选类型
|
||||
* 候选类型 0,用户 1,角色 2,部门
|
||||
* <p>
|
||||
* 1,用户 2,角色 3,部门
|
||||
* 需要与参数 {@link com.aizuda.bpm.engine.entity.FlwTaskActor#actorType} 值保持一致
|
||||
* </p>
|
||||
*/
|
||||
private Integer type;
|
||||
|
@ -110,7 +110,7 @@ public class NodeModel implements ModelInstance, Serializable {
|
||||
/**
|
||||
* 发起人自选类型
|
||||
* <p>
|
||||
* 1,自选一个人 2,自选多个人
|
||||
* 1,自选一个人 2,自选多个人 3,自选角色
|
||||
* </p>
|
||||
*/
|
||||
private Integer selectMode;
|
||||
|
Loading…
x
Reference in New Issue
Block a user