//package com.prolog.cs.biz.inbound.service.impl.rcv.task;
//
//import java.util.List;
//import java.util.Map;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import com.prolog.cs.biz.inbound.dto.rqc.RqcLinesDTO;
//import com.prolog.cs.bpm.core.annotation.Task;
//import com.prolog.cs.bpm.core.exception.TaskExcuteException;
//import com.prolog.cs.bpm.core.task.BasicTask;
//import com.prolog.cs.bpm.core.task.TaskVariable;
//import com.prolog.framework.utils.JsonUtils;
//import com.prolog.framework.utils.ObjectUtils;
//
//@Task(name = "质检", type = "inbound")
//public class InspectTask extends BasicTask {
//
//	private static Logger logger = LoggerFactory.getLogger(InspectTask.class);
//
//	@Override
//	public TaskVariable execute(TaskVariable var) throws TaskExcuteException {
//		if (ObjectUtils.isNull(var)) {
//			throw new TaskExcuteException("任务参数为空");
//		}
//
//		String bk = var.getBillNo(); // rcv单号
//
//		Map<String, Object> currentFormData = var.getTaskMap();
//		Map<String, Object> processFormData = var.getInstanceMap();
//
//		Object obj = currentFormData.get("data");
//
//		try {
//			String str = JsonUtils.toString(obj);
//			List<RqcLinesDTO> rqcLinesDTOList = JsonUtils.parseJsonString(str.getBytes(), RqcLinesDTO.class);
//			
//
//		} catch (Exception e) {
//			logger.error("具体错误:", e);
//		}
//		return var;
//	}
//}
