接口 TaskActorProvider

所有已知实现类:
GeneralTaskActorProvider

public interface TaskActorProvider
任务参与者提供处理接口
从以下版本开始:
1.0
  • 方法详细资料

    • isAllowed

      default boolean isAllowed(NodeModel nodeModel, FlowCreator flowCreator)
      流程创建者是否允许操作执行当前节点
      参数:
      nodeModel - 当前执行节点
      flowCreator - 流程创建者
      返回:
      true 允许 false 不被允许
    • getTaskActors

      List<FlwTaskActor> getTaskActors(NodeModel nodeModel, Execution execution)
      根据Task模型的assignee、assignmentHandler属性以及运行时数据,确定参与者
      参数:
      nodeModel - 节点模型
      execution - 执行对象
      返回:
      参与者列表
    • getNodeAssigneeList

      default List<NodeAssignee> getNodeAssigneeList(NodeModel nodeModel, Execution execution)
      动态获取分配到任务的处理者列表
      参数:
      nodeModel - 节点模型
      execution - 执行对象
      返回:
      参与者列表
    • abnormal

      default boolean abnormal(FlwTask flwTask, PerformType performType, List<FlwTaskActor> taskActors, Execution execution, NodeModel nodeModel)
      非正常创建任务处理逻辑,默认抛出异常
      参数:
      flwTask - 当前任务
      performType - 任务参与类型 PerformType
      taskActors - 任务参与者
      execution - 执行对象 Execution
      nodeModel - 模型节点 NodeModel
      返回:
      返回 true 不再创建任务,返回 false 解决异常补充回写 taskActors 信息
    • getActorType

      Integer getActorType(NodeModel nodeModel)
      参与者类型转换处理方法
      参数:
      nodeModel - 当前审批节点 NodeModel
      返回:
      返回值对应 flw_task_actor flw_his_task_actor 表字段参与者类型 actorType