接口 CustomHistoricTaskService

    • 方法详细资料

      • getById

        org.flowable.task.api.history.HistoricTaskInstance getById​(String taskId)
        根据任务Id获取任务实例
        参数:
        taskId -
        返回:
      • getFinishedCountByExecutionId

        long getFinishedCountByExecutionId​(String executionId)
        根据执行实例获取已经办理完成的任务数量
        参数:
        executionId -
        返回:
      • getThePreviousTask

        org.flowable.task.api.history.HistoricTaskInstance getThePreviousTask​(String taskId)
        获取当前任务的上一个任务节点,当前任务只可以是正在运行的任务实例
        参数:
        taskId -
        返回:
      • listByProcessInstanceId

        List<org.flowable.task.api.history.HistoricTaskInstance> listByProcessInstanceId​(String processInstanceId,
                                                                                         String year)
        Description: 根据流程实例获取所有历史任务实例
        参数:
        processInstanceId -
        year -
        返回:
      • listByProcessInstanceIdOrderByEndTimeAsc

        List<org.flowable.task.api.history.HistoricTaskInstance> listByProcessInstanceIdOrderByEndTimeAsc​(String processInstanceId,
                                                                                                          String year)
        Description: 根据流程实例获取所有历史任务实例
        参数:
        processInstanceId -
        year -
        返回:
      • listByProcessInstanceIdOrderByEndTimeDesc

        List<org.flowable.task.api.history.HistoricTaskInstance> listByProcessInstanceIdOrderByEndTimeDesc​(String processInstanceId,
                                                                                                           String year)
        Description: 根据流程实例获取所有历史任务实例
        参数:
        processInstanceId -
        year -
        返回:
      • listByProcessInstanceIdOrderByStartTimeAsc

        List<org.flowable.task.api.history.HistoricTaskInstance> listByProcessInstanceIdOrderByStartTimeAsc​(String processInstanceId,
                                                                                                            String year)
        Description: 根据流程实例,开始时间升序获取所有历史任务实例
        参数:
        processInstanceId -
        year -
        返回:
      • listThePreviousTasksByTaskId

        List<org.flowable.task.api.history.HistoricTaskInstance> listThePreviousTasksByTaskId​(String taskId)
        获取当前任务的上一个任务节点产生的所有任务,当前任务只可以是正在运行的任务实例
        参数:
        taskId -
        返回:
      • setTenantId

        void setTenantId​(String taskId)
        Description: 设置历史任务TANENT_ID_字段,存放协办任务是否被强制办结标识
        参数:
        taskId -