| | |
| | | import lombok.AllArgsConstructor; |
| | | import org.flowable.engine.HistoryService; |
| | | import org.flowable.engine.RuntimeService; |
| | | import org.flowable.engine.TaskService; |
| | | import org.flowable.engine.history.HistoricProcessInstance; |
| | | import org.flowable.engine.runtime.ProcessInstance; |
| | | import org.flowable.task.api.Task; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.StringUtil; |
| | | import org.springblade.mdm.flow.constants.FlowContants; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | |
| | | import java.util.Map; |
| | | |
| | |
| | | public class FlowCommonService { |
| | | private final RuntimeService runtimeService; |
| | | private final HistoryService historyService; |
| | | |
| | | /** |
| | | * 根据流程实例id获取definitionKey |
| | | * @param processInstanceId |
| | |
| | | |
| | | return historicInstance != null && historicInstance.getEndTime() == null; |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | |