activiti 查看流程图,并且当前节点实现标红

  • Post author:
  • Post category:其他


查看流程图比较简单,获取流程定义,展示即可。

重点是实现当前节点标记:

流程需要判断:是否已经结束


结束:获取结束节点


未结束:获取当前活动节点

测试代码如下:

 @Autowired
    ProcessEngineConfiguration processEngineConfiguration;
    @Autowired
    private ProcessEngine processEngine;
    @Autowired
    private RepositoryService repositoryService;
    @Autowired
    private RuntimeService runtimeService;
    @Autowired
    private HistoryService historyService;
    @RequestMapping(value = "/wjwtest")
    @ResponseBody
    public void testProcess(@RequestParam(name = "proInsId") String
                                        proInsId, @RequestParam(name = "businessKey") String businessKey,HttpServletResponse response) {
        try {
            //启动流程
//            RepositoryService repositoryService = SpringContextUtil.getApplicationContex



版权声明:本文为weixin_41643546原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。