package com.fujitsu.futurity.bp.custom.mapping;

//import java.util.ArrayList;
//import java.util.HashMap;
//import java.util.Iterator;
import java.util.Map;

import com.fujitsu.futurity.bp.x21.bpm.parameter.mapping.IReturnTelegramEditor;
//import com.fujitsu.futurity.bp.x21.values.MessageID;
//import com.fujitsu.futurity.common.JSYbpmLog;

/**
 * オペレーションマッピングクラス
 *
 */
public class BpOperationMapping implements IReturnTelegramEditor {

	@SuppressWarnings("unchecked")
	public Map<Object, Object> editResultData(String handleID, Map<Object, Object> orgData) {

// 20110816 FST)yanagihar FWのログ改修により不要なログ出力処理をコメントアウト start
//		for(Iterator ite = orgData.keySet().iterator(); ite.hasNext();){
//			Object key = ite.next();
//			Object value = orgData.get(key);
//			if(value instanceof ArrayList){
//				ArrayList list = (ArrayList)value;
//				for(int intI = 0; intI < list.size(); intI++){
//					Object obj = list.get(intI);
//					if(obj instanceof ArrayList){
//						ArrayList childList = (ArrayList)obj;
//						for(int intJ = 0; intJ < childList.size(); intJ++){
//							
//						}
//					}
//					else if(obj instanceof HashMap){
//						HashMap map = (HashMap)obj;
//						this.editResultData(handleID, map);
//					}
//					else if(value instanceof String){
//						String str = (String)value;
//						JSYbpmLog.println(JSYbpmLog.EXECUTION, this.getClass(), "", 
//								MessageID.EXE_SERVICE_IF_MSG, new String[]{"key", key.toString()}, "");
//						JSYbpmLog.println(JSYbpmLog.EXECUTION, this.getClass(), "", MessageID.EXE_SERVICE_IF_MSG, 
//								new String[]{"returnUserDataMap.get(key)", str}, "");
//					}
//				}
//			}
//			else if(value instanceof HashMap){
//				HashMap map = (HashMap)value;
//				this.editResultData(handleID, map);
//			}
//			else if(value instanceof String){
//				String str = (String)value;
//				JSYbpmLog.println(JSYbpmLog.EXECUTION, this.getClass(), "", 
//						MessageID.EXE_SERVICE_IF_MSG, new String[]{"key", key.toString()}, "");
//				JSYbpmLog.println(JSYbpmLog.EXECUTION, this.getClass(), "", MessageID.EXE_SERVICE_IF_MSG, 
//						new String[]{"returnUserDataMap.get(key)", str}, "");
//			}
//		}
// 20110816 FST)yanagihara FWのログ改修により不要なログ出力処理をコメントアウト end

		return orgData;
	}

}
