예제 #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);
   }
 }