/*** * 开始流程 */ @PostMapping(value = "/startProcessInstance") @ApiOperation(value = "开始流程", notes = "开始流程") public R startProcessInstance(@RequestBody @Validated @ApiParam(value = "开始流程请求对象") @Valid StartProcessInstanceReq startProcessInstanceReq) { try { Map<String, Object> variables = startProcessInstanceReq.getVariables();//流程配置参数 variables.put("applyUserId", startProcessInstanceReq.getApplyUserId());//流程发起人 ProcessInstance processInstance = activitiService.startProcessInstance(startProcessInstanceReq.getInstanceKey(), variables); log.debug("processInstance:" + processInstance.getProcessDefinitionId()); return R.ok().put("processInstanceId", processInstance.getId()); } catch (Exception e) { return R.error(-1, e.getMessage()); } }
- 1 回答
- 0 关注
- 1094 浏览
添加回答
举报
0/150
提交
取消