| | |
| | | import org.flowable.engine.RuntimeService; |
| | | import org.flowable.engine.TaskService; |
| | | import org.flowable.task.api.Task; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.mdm.flow.constants.FlowContants; |
| | | import org.springblade.mdm.flow.service.ApproveRecordService; |
| | | import org.springblade.system.feign.IUserClient; |
| | | import org.springblade.system.pojo.entity.User; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | protected RuntimeService runtimeService; |
| | | @Autowired |
| | | protected ApproveRecordService approveRecordService; |
| | | |
| | | @Transactional |
| | | public abstract void completeTask(String taskId, String processInstanceId, String comment, @Parameter(name = "variables", description = "流程变量") @RequestBody Map<String, Object> variables); |
| | | |
| | |
| | | String operateResult = variables.get("approve")+""; |
| | | approveRecordService.saveApproveRecords(currentTask(taskId),operateResult,comment); |
| | | } |
| | | |
| | | |
| | | } |