//根据nodeInstId查询此节点之后已创建的节点
public List<Long> getPreNodeInstIdByNodeInstId(long nodeInstId){boolean flag = true;List<Long> nodeInstIdList = new ArrayList();nodeInstIdList.add(nodeInstId);Long noInId = nodeInstId;while (flag) {List<WfNodeInstance> nodeInstIds = listObjects("From WfNodeInstance where prevnodeinstid= '"+noInId+"'");if(nodeInstIds.size()>0 && null != nodeInstIds.get(0).getNodeInstId()) {noInId = nodeInstIds.get(0).getNodeInstId();nodeInstIdList.add(noInId);} else {flag = false;}}return nodeInstIdList;
}
详细解决方案
根据节点id不断查询子节点
热度:76 发布时间:2024-02-21 01:34:15.0
相关解决方案