Пример #1
0
 public boolean isRunningNodeId(String nid) {
   BizFlowInsContext.NodeId2InsItem ret =
       (BizFlowInsContext.NodeId2InsItem) this.nodeId2Ins.get(nid);
   if (ret == null) {
     return false;
   }
   return ret.isRunning();
 }
Пример #2
0
 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;
 }
Пример #3
0
 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;
 }
Пример #4
0
 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);
   }
 }