类 WorkflowProcessInstanceService


  • @Service
    public class WorkflowProcessInstanceService
    extends Object
    作者:
    qinman, zhangchongjie
    Date:
    2022/12/30
    • 构造器详细资料

      • WorkflowProcessInstanceService

        public WorkflowProcessInstanceService()
    • 方法详细资料

      • findProcessInstance

        public org.flowable.engine.runtime.ProcessInstance findProcessInstance​(String processInstanceId)
        根据流程实例ID获取对应的流程实例
        参数:
        processInstanceId - 流程实例ID
        返回:
        抛出:
        Exception
      • findProcessInstanceByTaskId

        public org.flowable.engine.runtime.ProcessInstance findProcessInstanceByTaskId​(String taskId)
        根据任务ID获取对应的流程实例
        参数:
        taskId - 任务ID
        返回:
        抛出:
        Exception
      • getCertainTaskTargets

        public Map<String,​String> getCertainTaskTargets​(String taskId,
                                                              String targetType)
        查找当前任务节点的目标节点中指定类型的特定节点
        参数:
        taskId - 任务Id
        targetType - 节点类型(例如endEvent)
        返回:
      • getCertainTaskTargetsId

        public List<String> getCertainTaskTargetsId​(String taskId,
                                                    String targetType)
        查找当前任务节点的目标节点中指定类型的特定节点
        参数:
        taskId - 任务Id
        targetType - 节点类型(例如endEvent)
        返回:
      • getCurrentTaskTargets

        public net.risesoft.pojo.Y9Result<List<TargetModel>> getCurrentTaskTargets​(String processDefinitionId,
                                                                                   String taskDefKey)
        获取当前任务节点的目标节点
        参数:
        processDefinitionId -
        taskDefKey -
        返回:
      • getProcessDefinitionId

        public String getProcessDefinitionId​(String processDefinitionKey)
        根据流程定义Key(例如luohubanwen)获取流程定义id(例如luohubanwen:1:23145)
        参数:
        processDefinitionKey -
        返回:
      • getProcessInstanceIds

        public List<String> getProcessInstanceIds​(String processDefinitionKey)
        根据流程定义key查找对应的所有流程实例Id
        参数:
        processDefinitionKey - 流程定义key
        返回:
      • getProcessInstances

        public List<org.flowable.engine.runtime.ProcessInstance> getProcessInstances​(String processDefinitionKey)
        根据流程定义key查找对应的所有流程实例
        参数:
        processDefinitionKey - 流程定义key
        返回:
      • getPvmTransitions

        public List<org.flowable.bpmn.model.SequenceFlow> getPvmTransitions​(String taskId)
        根据taskId获取某个节点所有的输出线路
        参数:
        taskId - 任务Id
        返回:
      • getPvmTransitions

        public List<org.flowable.bpmn.model.SequenceFlow> getPvmTransitions​(String processDefinitionId,
                                                                            String taskDefKey)
        获取activitiId的所有输出线路
        参数:
        processDefinitionId - 流程定义Id
        taskDefKey - 某个节点Id,例如outflow
        返回:
      • getPvmTransitionsCount

        public int getPvmTransitionsCount​(String taskId)
        根据taskId获取某个节点除去end节点和默认路由节点的所有的输出线路的个数
        参数:
        taskId - 任务Id
        返回:
      • getSenderUser

        public String getSenderUser​(String taskId)
        获取上一任务发送人
        参数:
        taskId - 任务Id
        返回:
      • isContainTaskTarget

        public boolean isContainTaskTarget​(String taskId,
                                           String type)
        查找当前任务节点的目标节点中是否包含某一类型的特定节点
        参数:
        taskId - 任务Id
        type - 节点类型(例如endEvent)
        返回:
      • isContainTaskTargets

        public boolean isContainTaskTargets​(String taskId)
        查找当前任务节点的目标节点中是否包含某些类型的特定节点
        参数:
        taskId - 任务Id
        返回: