类 FlowSession

java.lang.Object
com.codingapi.springboot.flow.content.FlowSession

public class FlowSession extends Object
流程groovy脚本回话对象
  • 构造器详细资料

  • 方法详细资料

    • getBean

      public Object getBean(String beanName)
    • getBean

      public <T> T getBean(Class<T> clazz)
    • getAdvice

      public String getAdvice()
      获取审批意见
    • createNodeErrTrigger

      public NodeResult createNodeErrTrigger(String nodeCode)
      创建节点结果
      参数:
      nodeCode - 节点code
      返回:
      节点结果
    • createOperatorErrTrigger

      public OperatorResult createOperatorErrTrigger(List<Long> operatorIds)
      创建操作者结果
      参数:
      operatorIds - 操作者id
      返回:
      操作者结果
    • createOperatorErrTrigger

      public OperatorResult createOperatorErrTrigger(long... operatorIds)
      创建操作者结果
      参数:
      operatorIds - 操作者id
      返回:
      操作者结果
    • createMessageResult

      public MessageResult createMessageResult(String title, String resultState)
      创建流程提醒
      参数:
      title - 提醒标题
      返回:
      提醒对象
    • createMessageResult

      public MessageResult createMessageResult(String title)
      创建流程提醒
      参数:
      title - 提醒标题
      返回:
      提醒对象
    • createMessageResult

      public MessageResult createMessageResult(String title, String resultState, boolean closeable)
      创建流程提醒
      参数:
      title - 提醒标题
      closeable - 是否可关闭流程
      返回:
      提醒对象
    • createMessageResult

      public MessageResult createMessageResult(String title, String resultState, List<MessageResult.Message> items, boolean closeable)
      创建流程提醒
      参数:
      title - 提醒标题
      items - 提醒内容
      closeable - 是否可关闭流程
      返回:
      提醒对象
    • submitFlow

      public MessageResult submitFlow()
      提交流程
    • rejectFlow

      public MessageResult rejectFlow()
      驳回流程
    • stopFlow

      public void stopFlow()
      停止流程
    • backStateIsReject

      public boolean backStateIsReject()
      上级节点的状态是驳回状态
      返回:
      上级节点的状态是驳回状态
    • isRejectState

      @Deprecated public boolean isRejectState()
      已过时。
      上级节点的状态是驳回状态
      另请参阅:
    • currentStateIsReject

      public boolean currentStateIsReject()
      当前节点的状态是驳回状态
    • trySubmitFlow

      public MessageResult trySubmitFlow()
      预提交流程
    • saveFlow

      public void saveFlow()
      保存流程
    • urgeFlow

      public void urgeFlow()
      催办流程
    • recallFlow

      public void recallFlow()
      撤回流程