<%@ page import="weaver.general.Util" %>
<%@ page import="weaver.conn.RecordSet" %>
<%@ page import="org.apache.commons.lang3.StringUtils" %>
<%@ page import="weaver.hrm.HrmUserVarify" %>
<%@ page import="weaver.hrm.User" %>
<%@ page import="com.alibaba.fastjson.JSONObject" %>
<%@ page import="java.io.File" %>
<%@ page import="java.io.FileOutputStream" %>
<%@ page import="java.io.InputStream" %>
<%@ page import="weaver.file.ImageFileManager" %>
<%@ page import="com.engine.workflow.service.NewRequestService" %>
<%@ page import="com.engine.workflow.util.CommonUtil" %>
<%@ page import="com.engine.common.util.ServiceUtil" %>
<%@ page import="com.engine.workflow.service.impl.NewRequestServiceImpl" %>
<%@ page import="java.util.Map" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="com.engine.common.util.ParamUtil" %>
<%@ page import="com.alibaba.fastjson.JSON" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<%


   Map<String,Object> apidatas = getService(request,response).getWfInfo(ParamUtil.request2Map(request));
   out.print("apidatas:"+ JSON.toJSON(apidatas)+"</br>");

   JSONObject jsonObject = new JSONObject();


%>

<%=jsonObject.toJSONString() %>


<%!
    private NewRequestService getService(HttpServletRequest request, HttpServletResponse response){
        User user = CommonUtil.getUserByRequest(request,response);
        return (NewRequestService) ServiceUtil.getService(NewRequestServiceImpl.class,user);
    }

%>
