package weaver.interfaces.htsc.wdzx;

import com.engine.common.util.ServiceUtil;
import com.engine.htsc.wdzx.service.imp.WdzxmaintodetailServerImp;
import weaver.conn.RecordSet;
import weaver.interfaces.htsc.GlobatTools.JAVATools;
import weaver.interfaces.workflow.action.Action;
import weaver.soa.workflow.request.RequestInfo;

import java.util.HashMap;
import java.util.Map;

public class Wdzxmaintodetail implements Action {

    @Override
    public String execute(RequestInfo requestInfo) {

        JAVATools.SetCmdwritelog("文档中心流程","判断消息是否需要发送");
        RecordSet rs = new RecordSet();
        String requestid = requestInfo.getRequestid();
        String requestname=requestInfo.getRequestManager().getRequestname();
        String tablename=requestInfo.getRequestManager().getBillTableName();
        Map<String,Object> map=new HashMap<>();
        map.put("requestid",requestid);
        map.put("requestname",requestname);
        map.put("tablename",tablename);
        ServiceUtil.getService(WdzxmaintodetailServerImp.class).createtodetail(map);
        //失败的情况不影响流程正常走向
        return Action.SUCCESS;
    }


}
