public boolean isRunningNodeId(String nid) { BizFlowInsContext.NodeId2InsItem ret = (BizFlowInsContext.NodeId2InsItem) this.nodeId2Ins.get(nid); if (ret == null) { return false; } return ret.isRunning(); }
private BizFlowInsContext.NodeId2InsItem getNextCurRunningNodeIns(int scanid) { if (this.nodeId2Ins.size() <= 0) { return null; } for (BizFlowInsContext.NodeId2InsItem n2i : this.nodeId2Ins.values()) { if (n2i.checkRunningWithScan(scanid)) { return n2i; } } return null; }
private ArrayList<BizFlowInsContext.NodeId2InsItem> getCurRunningNodeIns(int scanid) { if (this.nodeId2Ins.size() <= 0) { return null; } ArrayList rets = new ArrayList(); for (BizFlowInsContext.NodeId2InsItem n2i : this.nodeId2Ins.values()) { if (n2i.checkRunningWithScan(scanid)) { rets.add(n2i); } } return rets; }
public void fromXmlData(XmlData xd) { String[] sns = xd.getSubDataNames(); if (sns == null) { return; } for (String sn : sns) { XmlData tmpxd = xd.getSubDataSingle(sn); BizFlowInsContext.NodeId2InsItem niii = new BizFlowInsContext.NodeId2InsItem(); niii.fromXmlData(tmpxd); this.nodeId2Ins.put(sn, niii); } }