public XmlData toXmlData() {
   XmlData tmpxd = new XmlData();
   for (Map.Entry n2nii : this.nodeId2Ins.entrySet()) {
     tmpxd.setSubDataSingle(
         (String) n2nii.getKey(),
         ((BizFlowInsContext.NodeId2InsItem) n2nii.getValue()).toXmlData());
   }
   return tmpxd;
 }
示例#2
0
 public XmlData toXmlData() {
   XmlData xd = new XmlData();
   for (DataColumn dc : belongToDT.getColumns()) {
     String n = dc.getName();
     Object o = this.getValue(n);
     if (o != null) xd.setParamValue(n, o);
   }
   return xd;
 }
示例#3
0
  public XmlData toXmlData() {
    XmlData xd = new XmlData();

    xd.setParamValue("table_name", tableName);
    xd.setSubDataSingle("struct", tableXmlST.toXmlData());
    if (pkColName != null) xd.setParamValue("pk_col_name", pkColName);
    if (selectSql != null) xd.setParamValue("select_sql", selectSql);

    return xd;
  }
示例#4
0
 public void fromXmlData(XmlData xd) {
   tableName = xd.getParamValueStr("table_name");
   XmlData stxd = xd.getSubDataSingle("struct");
   if (stxd != null) {
     XmlDataStruct xds = new XmlDataStruct();
     xds.fromXmlData(stxd);
     tableXmlST = xds;
   }
   pkColName = xd.getParamValueStr("pk_col_name");
   selectSql = xd.getParamValueStr("select_sql");
 }
    public XmlData toXmlData() {
      XmlData xd = new XmlData();
      xd.setParamValue("node_id", this.nodeId);

      xd.setParamValue("is_running", Boolean.valueOf(this.bRunning));
      if (this.selTransId != null) {
        xd.setParamValue("sel_trans_id", this.selTransId);
      }
      if (this.relatedInsIds != null) xd.setParamValues("ins_ids", this.relatedInsIds);
      return xd;
    }
 XmlData getInsRTXmlData() {
   XmlData tmpxd = new XmlData();
   tmpxd.setParamValue("id", Long.valueOf(getInsId()));
   String t = getInsTitle();
   if (t != null) {
     tmpxd.setParamValue("title", t);
   }
   tmpxd.setParamValue("start_date", getStartDate());
   tmpxd.setParamValue("flow_path", getFlowPath());
   return tmpxd;
 }
    public void fromXmlData(XmlData xd) {
      this.nodeId = xd.getParamValueStr("node_id");

      this.bRunning = xd.getParamValueBool("is_running", false).booleanValue();

      this.selTransId = xd.getParamValueStr("sel_trans_id");

      Long[] ids = xd.getParamValuesInt64("ins_ids");
      if (ids != null) {
        for (Long id : ids) this.relatedInsIds.add(id);
      }
    }
 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);
   }
 }
示例#9
0
  public void fromXmlData(XmlData xd) {
    for (DataColumn dc : belongToDT.getColumns()) {
      String n = dc.getName();
      Object ov = xd.getParamValue(n);
      if (ov != null) { // 适应jdbc数据库访问要求
        if ((ov instanceof java.util.Date) && !(ov instanceof java.sql.Timestamp)) {
          ov = new java.sql.Timestamp(((java.util.Date) ov).getTime());
        }

        this.put(n, ov);
      }
    }
  }