流程圖(二)

/**
  * 從ResponseBean取得Process Status.
  * 
  * @param resBean
  * @return
  * @author: 710000571
  * @version: 1.0
  * 
  * Modification History: 
  * Date Author Description 
  * ----------------------- 
  * May 26, 2009 710000571 Initialization
  */
 @SuppressWarnings("unchecked")
 public static String getProcessStatus(ResponseBean resBean){
  Map<Object, Object> map = resBean.getDataContainerMapType();
  if(null == map
    || 0 == map.size() ){
   return null;
  }
  
  Iterator it = map.keySet().iterator();
  while(it.hasNext()){
   String key = (String)it.next();
   if (log.isDebugEnabled()) {
    log.debug("Key [" + key + "] -> value[" + map.get(key) + "]");
   }
   
   if(KEY_PROCESS_STATUS.equalsIgnoreCase(key)){
    return (String)map.get(key);
   }
  }
  
  return "";
 }


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章