Merge branch 'master' of gitee.com:sz_30/supervison-java into feature/different-level-get-veriable
Signed-off-by: new_new_new <8454518+new-twice@user.noreply.gitee.com>
This commit is contained in:
+1
@@ -25,6 +25,7 @@ public class SaveCurrentTaskAssigneeLocalListener implements TaskListener {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void notify(DelegateTask delegateTask) {
|
public void notify(DelegateTask delegateTask) {
|
||||||
if (delegateTask == null) return;
|
if (delegateTask == null) return;
|
||||||
|
|||||||
+16
@@ -468,6 +468,22 @@ public class FlowNodeExpression {
|
|||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private String getParentExecutionId(Execution execution, int parentLevel) {
|
||||||
|
Execution current = execution;
|
||||||
|
for (int i = 0; i < parentLevel; i++) {
|
||||||
|
if (current == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
if (StringUtils.isBlank(current.getParentId())) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
current = runtimeService.createExecutionQuery()
|
||||||
|
.executionId(current.getParentId())
|
||||||
|
.singleResult();
|
||||||
|
}
|
||||||
|
return current == null ? null : current.getId();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查找上一级部门负责人
|
* 查找上一级部门负责人
|
||||||
* ${flowNodeExpression.getLevel1DepartLeaders(applyUserId)}
|
* ${flowNodeExpression.getLevel1DepartLeaders(applyUserId)}
|
||||||
|
|||||||
Reference in New Issue
Block a user