Ver código fonte

注释流程测试类

wangbo 4 anos atrás
pai
commit
8d72f0a34e

+ 17 - 17
operation_manager/src/main/java/com/huaxu/task/controller/PlanManageController.java

@@ -27,26 +27,26 @@ public class PlanManageController {
      * @param taskType 任务类型
      * @param planStartDate 计划开始时间
      * @param planEndDate 计划结束时间
-     * @param userId 巡检人ID
-     * @param planUserId 计划人ID
-     * @param taskContent 巡检类
-     * @param taskAreaShape 巡检区域坐标
-     * @param taskAreaName 巡检区域名称
-     * @param createBy 记录创建人
+     * @param userId 计划巡检人ID
+     * @param planUserId 计划安排人ID
+     * @param taskContent 任务内
+     * @param taskAreaShape 任务区域坐标
+     * @param taskAreaName 任务区域名称
+     * @param createBy 创建者
      * @return
      */
     @PostMapping("/plan/add")
     @ApiOperation(value = "新增巡检计划")
-    public AjaxMessage addPlan(String planName,
-                                           Integer taskType,
-                                           Date planStartDate,
-                                           Date planEndDate,
-                                           String userId,
-                                           String planUserId,
-                                           String taskContent,
-                                           String taskAreaShape,
-                                           String taskAreaName,
-                                           String createBy) {
+    public AjaxMessage addPlan(@ApiParam(value = "任务名称", required = true) @RequestParam(required = true) String planName,
+                               @ApiParam(value = "任务类型", required = true) @RequestParam(required = true) Integer taskType,
+                               @ApiParam(value = "计划开始时间", required = true) @RequestParam(required = true) Date planStartDate,
+                               @ApiParam(value = "计划结束时间", required = true) @RequestParam(required = true) Date planEndDate,
+                               @ApiParam(value = "计划巡检人ID", required = true) @RequestParam(required = true) String userId,
+                               @ApiParam(value = "计划安排人ID", required = true) @RequestParam(required = true) String planUserId,
+                               @ApiParam(value = "任务内容", required = true) @RequestParam(required = true) String taskContent,
+                               @ApiParam(value = "任务区域坐标", required = true) @RequestParam(required = true) String taskAreaShape,
+                               @ApiParam(value = "任务区域名称", required = true) @RequestParam(required = true) String taskAreaName,
+                               @ApiParam(value = "创建者ID", required = true) @RequestParam(required = true) String createBy) {
         String planId=DatesUtil.formatDate(new Date(),"yyyyMMddHHmmss")+String.valueOf((int) (Math.random()*(9999-1000)+1000));
         PlanManage record = new PlanManage();
         record.setUserId(userId);
@@ -61,7 +61,7 @@ public class PlanManageController {
         record.setTaskAreaShape(taskAreaShape);
         record.setTaskAreaName(taskAreaName);
         record.setCreateBy(createBy);
-        record.setDateCreate(new Date());
+        record.setDateCreate(new Date(System.currentTimeMillis()));
         int rows = planManageService.insertSelective(record);
         if(rows > 0) {
             return new AjaxMessage(ResultStatus.OK);

+ 0 - 4
operation_manager/src/main/java/com/huaxu/task/dao/PlanManageMapper.java

@@ -8,13 +8,9 @@ public interface PlanManageMapper {
 
     int deleteByPrimaryKey(Integer id);
 
-    int insert(PlanManage record);
-
     int insertSelective(PlanManage record);
 
     PlanManage selectByPrimaryKey(Integer id);
 
     int updateByPrimaryKeySelective(PlanManage record);
-
-    int updateByPrimaryKey(PlanManage record);
 }

+ 16 - 59
operation_manager/src/main/resources/mapper/task/PlanManageMapper.xml

@@ -7,9 +7,9 @@
     <result column="plan_name" property="planName" jdbcType="VARCHAR" />
     <result column="plan_user_id" property="planUserId" jdbcType="VARCHAR" />
     <result column="user_id" property="userId" jdbcType="VARCHAR" />
-    <result column="plan_date" property="planDate" jdbcType="DATE" />
-    <result column="plan_start_date" property="planStartDate" jdbcType="DATE" />
-    <result column="plan_end_date" property="planEndDate" jdbcType="DATE" />
+    <result column="plan_date" property="planDate" jdbcType="TIMESTAMP" />
+    <result column="plan_start_date" property="planStartDate" jdbcType="TIMESTAMP" />
+    <result column="plan_end_date" property="planEndDate" jdbcType="TIMESTAMP" />
     <result column="task_content" property="taskContent" jdbcType="VARCHAR" />
     <result column="task_area_shape" property="taskAreaShape" jdbcType="VARCHAR" />
     <result column="task_area_name" property="taskAreaName" jdbcType="VARCHAR" />
@@ -22,9 +22,9 @@
     <result column="current_users" property="currentUsers" jdbcType="VARCHAR" />
     <result column="current_task_name" property="currentTaskName" jdbcType="VARCHAR" />
     <result column="create_by" property="createBy" jdbcType="VARCHAR" />
-    <result column="date_create" property="dateCreate" jdbcType="DATE" />
+    <result column="date_create" property="dateCreate" jdbcType="TIMESTAMP" />
     <result column="update_by" property="updateBy" jdbcType="VARCHAR" />
-    <result column="date_update" property="dateUpdate" jdbcType="DATE" />
+    <result column="date_update" property="dateUpdate" jdbcType="TIMESTAMP" />
 
   <!--  <association property="planUser" javaType="com.huaxu.entity.UserEntity">
       <id column="plan_user_id" property="id" jdbcType="INTEGER"/>
@@ -64,24 +64,7 @@
     delete from sc_plan_manage
     where id = #{id,jdbcType=INTEGER}
   </delete>
-  <insert id="insert" parameterType="com.huaxu.task.entity.PlanManage" >
-    insert into sc_plan_manage (id, plan_id, plan_name, 
-      plan_user_id, user_id, plan_date, 
-      plan_start_date, plan_end_date, task_content, 
-      task_area_shape, task_area_name, task_type, 
-      plan_status, tenant_id, process_instance_id, 
-      process_def_id, current_task_id, current_users, 
-      current_task_name, create_by, date_create, 
-      update_by, date_update)
-    values (#{id,jdbcType=INTEGER}, #{planId,jdbcType=VARCHAR}, #{planName,jdbcType=VARCHAR}, 
-      #{planUserId,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, #{planDate,jdbcType=DATE}, 
-      #{planStartDate,jdbcType=DATE}, #{planEndDate,jdbcType=DATE}, #{taskContent,jdbcType=VARCHAR}, 
-      #{taskAreaShape,jdbcType=VARCHAR}, #{taskAreaName,jdbcType=VARCHAR}, #{taskType,jdbcType=INTEGER}, 
-      #{planStatus,jdbcType=INTEGER}, #{tenantId,jdbcType=VARCHAR}, #{processInstanceId,jdbcType=VARCHAR}, 
-      #{processDefId,jdbcType=VARCHAR}, #{currentTaskId,jdbcType=VARCHAR}, #{currentUsers,jdbcType=VARCHAR}, 
-      #{currentTaskName,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{dateCreate,jdbcType=DATE}, 
-      #{updateBy,jdbcType=VARCHAR}, #{dateUpdate,jdbcType=DATE})
-  </insert>
+
   <insert id="insertSelective" parameterType="com.huaxu.task.entity.PlanManage" >
     insert into sc_plan_manage
     <trim prefix="(" suffix=")" suffixOverrides="," >
@@ -172,13 +155,13 @@
         #{userId,jdbcType=VARCHAR},
       </if>
       <if test="planDate != null" >
-        #{planDate,jdbcType=DATE},
+        #{planDate,jdbcType=TIMESTAMP},
       </if>
       <if test="planStartDate != null" >
-        #{planStartDate,jdbcType=DATE},
+        #{planStartDate,jdbcType=TIMESTAMP},
       </if>
       <if test="planEndDate != null" >
-        #{planEndDate,jdbcType=DATE},
+        #{planEndDate,jdbcType=TIMESTAMP},
       </if>
       <if test="taskContent != null" >
         #{taskContent,jdbcType=VARCHAR},
@@ -217,13 +200,13 @@
         #{createBy,jdbcType=VARCHAR},
       </if>
       <if test="dateCreate != null" >
-        #{dateCreate,jdbcType=DATE},
+        #{dateCreate,jdbcType=TIMESTAMP},
       </if>
       <if test="updateBy != null" >
         #{updateBy,jdbcType=VARCHAR},
       </if>
       <if test="dateUpdate != null" >
-        #{dateUpdate,jdbcType=DATE},
+        #{dateUpdate,jdbcType=TIMESTAMP},
       </if>
     </trim>
   </insert>
@@ -243,13 +226,13 @@
         user_id = #{userId,jdbcType=VARCHAR},
       </if>
       <if test="planDate != null" >
-        plan_date = #{planDate,jdbcType=DATE},
+        plan_date = #{planDate,jdbcType=TIMESTAMP},
       </if>
       <if test="planStartDate != null" >
-        plan_start_date = #{planStartDate,jdbcType=DATE},
+        plan_start_date = #{planStartDate,jdbcType=TIMESTAMP},
       </if>
       <if test="planEndDate != null" >
-        plan_end_date = #{planEndDate,jdbcType=DATE},
+        plan_end_date = #{planEndDate,jdbcType=TIMESTAMP},
       </if>
       <if test="taskContent != null" >
         task_content = #{taskContent,jdbcType=VARCHAR},
@@ -288,43 +271,17 @@
         create_by = #{createBy,jdbcType=VARCHAR},
       </if>
       <if test="dateCreate != null" >
-        date_create = #{dateCreate,jdbcType=DATE},
+        date_create = #{dateCreate,jdbcType=TIMESTAMP},
       </if>
       <if test="updateBy != null" >
         update_by = #{updateBy,jdbcType=VARCHAR},
       </if>
       <if test="dateUpdate != null" >
-        date_update = #{dateUpdate,jdbcType=DATE},
+        date_update = #{dateUpdate,jdbcType=TIMESTAMP},
       </if>
     </set>
     where id = #{id,jdbcType=INTEGER}
   </update>
-  <update id="updateByPrimaryKey" parameterType="com.huaxu.task.entity.PlanManage" >
-    update sc_plan_manage
-    set plan_id = #{planId,jdbcType=VARCHAR},
-      plan_name = #{planName,jdbcType=VARCHAR},
-      plan_user_id = #{planUserId,jdbcType=VARCHAR},
-      user_id = #{userId,jdbcType=VARCHAR},
-      plan_date = #{planDate,jdbcType=DATE},
-      plan_start_date = #{planStartDate,jdbcType=DATE},
-      plan_end_date = #{planEndDate,jdbcType=DATE},
-      task_content = #{taskContent,jdbcType=VARCHAR},
-      task_area_shape = #{taskAreaShape,jdbcType=VARCHAR},
-      task_area_name = #{taskAreaName,jdbcType=VARCHAR},
-      task_type = #{taskType,jdbcType=INTEGER},
-      plan_status = #{planStatus,jdbcType=INTEGER},
-      tenant_id = #{tenantId,jdbcType=VARCHAR},
-      process_instance_id = #{processInstanceId,jdbcType=VARCHAR},
-      process_def_id = #{processDefId,jdbcType=VARCHAR},
-      current_task_id = #{currentTaskId,jdbcType=VARCHAR},
-      current_users = #{currentUsers,jdbcType=VARCHAR},
-      current_task_name = #{currentTaskName,jdbcType=VARCHAR},
-      create_by = #{createBy,jdbcType=VARCHAR},
-      date_create = #{dateCreate,jdbcType=DATE},
-      update_by = #{updateBy,jdbcType=VARCHAR},
-      date_update = #{dateUpdate,jdbcType=DATE}
-    where id = #{id,jdbcType=INTEGER}
-  </update>
 
   <select id="selectPlanTagId" resultType="java.lang.String" parameterType="java.lang.String" >
     select plan_id

+ 20 - 20
operation_manager/src/test/java/com/huaxu/test/ProgressSevice.java

@@ -1,20 +1,20 @@
-package com.huaxu.test;
-
-import org.activiti.engine.delegate.DelegateExecution;
-import org.activiti.engine.delegate.Expression;
-import org.activiti.engine.delegate.JavaDelegate;
-
-public class ProgressSevice implements JavaDelegate {
-    private Expression expression;
-
-    @Override
-    public void execute(DelegateExecution delegateExecution) throws Exception {
-        System.out.println("serviceTask已经执行已经执行!");
-        delegateExecution.setVariable("pragram","6666");
-        String value1 = (String) expression.getValue(delegateExecution);
-
-         System.out.println(value1);
-
-        delegateExecution.setVariable("var1", new StringBuffer(value1).reverse().toString());
-    }
-}
+//package com.huaxu.test;
+//
+//import org.activiti.engine.delegate.DelegateExecution;
+//import org.activiti.engine.delegate.Expression;
+//import org.activiti.engine.delegate.JavaDelegate;
+//
+//public class ProgressSevice implements JavaDelegate {
+//    private Expression expression;
+//
+//    @Override
+//    public void execute(DelegateExecution delegateExecution) throws Exception {
+//        System.out.println("serviceTask已经执行已经执行!");
+//        delegateExecution.setVariable("pragram","6666");
+//        String value1 = (String) expression.getValue(delegateExecution);
+//
+//         System.out.println(value1);
+//
+//        delegateExecution.setVariable("var1", new StringBuffer(value1).reverse().toString());
+//    }
+//}

+ 140 - 143
operation_manager/src/test/java/com/huaxu/test/TestProcess.java

@@ -1,143 +1,140 @@
-package com.huaxu.test;
-
-import lombok.extern.slf4j.Slf4j;
-import org.activiti.engine.*;
-import org.activiti.engine.repository.Deployment;
-import org.activiti.engine.repository.ProcessDefinition;
-import org.activiti.engine.runtime.ProcessInstance;
-import org.activiti.engine.task.Task;
-import org.activiti.engine.task.TaskQuery;
-import org.junit.Before;
-import org.junit.Test;
-
-import java.io.*;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-@Slf4j
-public class TestProcess {
-
-    RepositoryService repositoryService;
-    RuntimeService runtimeService;
-    TaskService taskService;
-    @Before
-    public void initProcessEngine(){
-        //创建引擎配置对象
-        ProcessEngineConfiguration configration = ProcessEngineConfiguration.createStandaloneInMemProcessEngineConfiguration();
-
-        //创建流程引擎对象
-        //目标生成数据库表
-        configration.setJdbcUrl("jdbc:mysql://114.135.61.188:33306/operation_manager?characterEncoding=utf8");
-        configration.setJdbcDriver("com.mysql.jdbc.Driver");
-        configration.setJdbcUsername("root");
-        configration.setJdbcPassword("100Zone@123");
-        //设置表的生成策略
-        configration.setDatabaseSchemaUpdate(ProcessEngineConfiguration.DB_SCHEMA_UPDATE_TRUE);
-        configration.setActivityFontName("宋体");
-        configration.setLabelFontName("宋体");
-        ProcessEngine processEngine = configration.buildProcessEngine();
-
-        System.out.println(processEngine.getName());
-        repositoryService=processEngine.getRepositoryService();
-        runtimeService=processEngine.getRuntimeService();
-        taskService=processEngine.getTaskService();
-    }
-    /* 按行读对于要处理的格式化数据是一种读取的好方式 */
-    private static String readBPMNcontent(String path)
-    {
-        int len=0;
-        StringBuffer str=new StringBuffer("");
-        File file=new File(path);
-        try {
-            FileInputStream is=new FileInputStream(file);
-            InputStreamReader isr= new InputStreamReader(is);
-            BufferedReader in= new BufferedReader(isr);
-            String line=null;
-            while( (line=in.readLine())!=null )
-            {
-                if(len != 0) // 处理换行符的问题
-                {
-                    str.append(line);
-                }
-                else
-                {
-                    str.append(line);
-                }
-                len++;
-            }
-            in.close();
-            is.close();
-        } catch (IOException e) {
-            // TODO Auto-generated catch block
-            e.printStackTrace();
-        }
-        return str.toString();
-    }
-
-    @Test
-    public void deploy() throws UnsupportedEncodingException {
-        String key="777";
-        String tenantId="first";
-        String path="D:\\迅雷下载/主工单.bpmn20.xml";
-        String content=readBPMNcontent(path);
-        content=new String(content.getBytes(),"utf-8");
-       Deployment deployment = repositoryService// 获取流程定义和部署对象相关的Service
-                .createDeployment()// 创建部署对象
-                .addString(key + ".bpmn", content).
-                        tenantId(tenantId).deploy();// 完成部署
-     System.out.println(deployment.getId()+"------"+deployment.getName());
-
-    }
-    @Test
-    public void findDefine(){
-        List<ProcessDefinition> list = repositoryService.createProcessDefinitionQuery().orderByProcessDefinitionVersion().asc().list();
-        list.forEach(processDefinition -> {
-            System.out.println(processDefinition.getKey()+"----"+processDefinition.getVersion()+"========"+processDefinition.getId());
-        });
-
-    }
-    @Test
-    public void startProcess(){
-
-        ProcessInstance process = runtimeService.startProcessInstanceByKeyAndTenantId("mainprocess","first");//17501
-        log.info("pid:{},activityId:{},pdid:{}",process.getId(),process.getActivityId(),process.getProcessDefinitionId());
-    }
-    @Test
-    public void selectTasks(){
-        List<Task> list = taskService.createTaskQuery().taskUnassigned().list();
-        list.forEach(task -> {
-            log.info(task.toString());
-        });
-    }
-    @Test
-    public void startProcessByUser(){
-        Map<String,Object>args=new HashMap<>();
-        args.put("leader","test");
-        ProcessInstance process = runtimeService.startProcessInstanceByKeyAndTenantId("process2",args,"first");//17501
-        log.info("pid:{},activityId:{},pdid:{}",process.getId(),process.getActivityId(),process.getProcessDefinitionId());
-    }
-    @Test
-    public void selectTaskByUser(){
-        String user="test";
-        List<Task> test = taskService.createTaskQuery().taskAssigneeLike("%test%").list();
-       test.forEach(task -> {
-           System.out.println(task);
-       });
-
-    }
-    @Test
-    public void compelete(){
-        String id="160011";
-        Map<String, Object> variables = taskService.getVariables(id);
-
-
-        variables.put("someVariableInMainProcess",135001);
-        variables.put("flag",'2');
-        taskService.setVariables(id,variables);
-        Object mainId = taskService.getVariable(id, "someVariableInMainProcess");
-        taskService.complete(id);
-
-    }
-}
+//package com.huaxu.test;
+//
+//import lombok.extern.slf4j.Slf4j;
+//import org.activiti.engine.*;
+//import org.activiti.engine.repository.Deployment;
+//import org.activiti.engine.repository.ProcessDefinition;
+//import org.activiti.engine.runtime.ProcessInstance;
+//import org.activiti.engine.task.Task;
+//import org.activiti.engine.task.TaskQuery;
+//import org.junit.Before;
+//import org.junit.Test;
+//
+//import java.io.*;
+//import java.util.ArrayList;
+//import java.util.HashMap;
+//import java.util.List;
+//import java.util.Map;
+//
+//@Slf4j
+//public class TestProcess {
+//
+//    RepositoryService repositoryService;
+//    RuntimeService runtimeService;
+//    TaskService taskService;
+//    @Before
+//    public void initProcessEngine(){
+//        //创建引擎配置对象
+//        ProcessEngineConfiguration configration = ProcessEngineConfiguration.createStandaloneInMemProcessEngineConfiguration();
+//
+//        //创建流程引擎对象
+//        //目标生成数据库表
+//        configration.setJdbcUrl("jdbc:mysql://114.135.61.188:33306/operation_manager?characterEncoding=utf8");
+//        configration.setJdbcDriver("com.mysql.jdbc.Driver");
+//        configration.setJdbcUsername("root");
+//        configration.setJdbcPassword("100Zone@123");
+//        //设置表的生成策略
+//        configration.setDatabaseSchemaUpdate(ProcessEngineConfiguration.DB_SCHEMA_UPDATE_TRUE);
+//        configration.setActivityFontName("宋体");
+//        configration.setLabelFontName("宋体");
+//        ProcessEngine processEngine = configration.buildProcessEngine();
+//
+//        System.out.println(processEngine.getName());
+//        repositoryService=processEngine.getRepositoryService();
+//        runtimeService=processEngine.getRuntimeService();
+//        taskService=processEngine.getTaskService();
+//    }
+//    /* 按行读对于要处理的格式化数据是一种读取的好方式 */
+//    private static String readBPMNcontent(String path)
+//    {
+//        int len=0;
+//        StringBuffer str=new StringBuffer("");
+//        File file=new File(path);
+//        try {
+//            FileInputStream is=new FileInputStream(file);
+//            InputStreamReader isr= new InputStreamReader(is);
+//            BufferedReader in= new BufferedReader(isr);
+//            String line=null;
+//            while( (line=in.readLine())!=null )
+//            {
+//                if(len != 0) // 处理换行符的问题
+//                {
+//                    str.append(line);
+//                }
+//                else
+//                {
+//                    str.append(line);
+//                }
+//                len++;
+//            }
+//            in.close();
+//            is.close();
+//        } catch (IOException e) {
+//            // TODO Auto-generated catch block
+//            e.printStackTrace();
+//        }
+//        return str.toString();
+//    }
+//
+//    @Test
+//    public void deploy() throws UnsupportedEncodingException {
+//        String key="777";
+//        String tenantId="first";
+//        String path="D:\\迅雷下载/主工单.bpmn20.xml";
+//        String content=readBPMNcontent(path);
+//        content=new String(content.getBytes(),"utf-8");
+//       Deployment deployment = repositoryService// 获取流程定义和部署对象相关的Service
+//                .createDeployment()// 创建部署对象
+//                .addString(key + ".bpmn", content).
+//                        tenantId(tenantId).deploy();// 完成部署
+//     System.out.println(deployment.getId()+"------"+deployment.getName());
+//
+//    }
+//    @Test
+//    public void findDefine(){
+//        List<ProcessDefinition> list = repositoryService.createProcessDefinitionQuery().orderByProcessDefinitionVersion().asc().list();
+//        list.forEach(processDefinition -> {
+//            System.out.println(processDefinition.getKey()+"----"+processDefinition.getVersion()+"========"+processDefinition.getId());
+//        });
+//
+//    }
+//    @Test
+//    public void startProcess(){
+//
+//        ProcessInstance process = runtimeService.startProcessInstanceByKeyAndTenantId("mainprocess","first");//17501
+//        log.info("pid:{},activityId:{},pdid:{}",process.getId(),process.getActivityId(),process.getProcessDefinitionId());
+//    }
+//    @Test
+//    public void selectTasks(){
+//        List<Task> list = taskService.createTaskQuery().taskUnassigned().list();
+//        list.forEach(task -> {
+//            log.info(task.toString());
+//        });
+//    }
+//    @Test
+//    public void startProcessByUser(){
+//        Map<String,Object>args=new HashMap<>();
+//        args.put("leader","test");
+//        ProcessInstance process = runtimeService.startProcessInstanceByKeyAndTenantId("process2",args,"first");//17501
+//        log.info("pid:{},activityId:{},pdid:{}",process.getId(),process.getActivityId(),process.getProcessDefinitionId());
+//    }
+//    @Test
+//    public void selectTaskByUser(){
+//        String user="test";
+//        List<Task> test = taskService.createTaskQuery().taskAssigneeLike("%test%").list();
+//       test.forEach(task -> {
+//           System.out.println(task);
+//       });
+//
+//    }
+//    @Test
+//    public void compelete(){
+//        String id="160011";
+//        Map<String, Object> variables = taskService.getVariables(id);
+//        variables.put("someVariableInMainProcess",135001);
+//        variables.put("flag",'2');
+//        taskService.setVariables(id,variables);
+//        Object mainId = taskService.getVariable(id, "someVariableInMainProcess");
+//        taskService.complete(id);
+//    }
+//}

+ 31 - 31
operation_manager/src/test/java/com/huaxu/test/TestSpringProgress.java

@@ -1,31 +1,31 @@
-package com.huaxu.test;
-
-import com.huaxu.OperationManagerMain;
-import com.huaxu.process.entity.ProcessDefinition;
-import com.huaxu.process.service.WorkFlowService;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.boot.test.context.SpringBootTest;
-import org.springframework.test.context.junit4.SpringRunner;
-
-import java.util.HashMap;
-import java.util.Map;
-
-@RunWith(SpringRunner.class)
-@SpringBootTest(classes = OperationManagerMain.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
-public class TestSpringProgress {
-    @Autowired
-    private WorkFlowService workFlowService;
-    @Test
-    public void testStartProcess(){
-        ProcessDefinition processDefinition=new ProcessDefinition();
-        processDefinition.setTenantId("test1");
-        processDefinition.setProcessKey("workFlow");
-        String businessKey="43";
-        Map<String, Object> vars=new HashMap<>();
-        vars.put("assineeFormUserId","55");
-        workFlowService.startProcess(processDefinition,vars);
-        //workFlowService.startProcess(processDefinition,businessKey,vars);
-    }
-}
+//package com.huaxu.test;
+//
+//import com.huaxu.OperationManagerMain;
+//import com.huaxu.process.entity.ProcessDefinition;
+//import com.huaxu.process.service.WorkFlowService;
+//import org.junit.Test;
+//import org.junit.runner.RunWith;
+//import org.springframework.beans.factory.annotation.Autowired;
+//import org.springframework.boot.test.context.SpringBootTest;
+//import org.springframework.test.context.junit4.SpringRunner;
+//
+//import java.util.HashMap;
+//import java.util.Map;
+//
+//@RunWith(SpringRunner.class)
+//@SpringBootTest(classes = OperationManagerMain.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
+//public class TestSpringProgress {
+//    @Autowired
+//    private WorkFlowService workFlowService;
+//    @Test
+//    public void testStartProcess(){
+//        ProcessDefinition processDefinition=new ProcessDefinition();
+//        processDefinition.setTenantId("test1");
+//        processDefinition.setProcessKey("workFlow");
+//        String businessKey="43";
+//        Map<String, Object> vars=new HashMap<>();
+//        vars.put("assineeFormUserId","55");
+//        workFlowService.startProcess(processDefinition,vars);
+//        //workFlowService.startProcess(processDefinition,businessKey,vars);
+//    }
+//}