Class RepositoryHolderContext

java.lang.Object
com.codingapi.flow.context.RepositoryHolderContext

public class RepositoryHolderContext extends Object
  • Method Details

    • isRegistered

      public boolean isRegistered()
      是否已经注册成功
    • verify

      public void verify()
    • register

      public void register(WorkflowRepository workflowRepository, WorkflowBackupRepository workflowBackupRepository, FlowRecordRepository flowRecordRepository, FlowOperatorGateway flowOperatorGateway, ParallelBranchRepository parallelBranchRepository, DelayTaskRepository delayTaskRepository, UrgeIntervalRepository urgeIntervalRepository)
    • createDelayTriggerService

      public FlowDelayTriggerService createDelayTriggerService(DelayTask task)
      构建延迟触发执行服务
      Parameters:
      task - 延迟任务
      Returns:
      延迟触发执行服务
    • createFlowActionService

      public FlowActionService createFlowActionService(FlowSession flowSession)
      构建流程动作服务
      Parameters:
      flowSession - 流程会话
      Returns:
      流程动作服务
    • createFlowService

      public FlowService createFlowService()
      构建流程服务
      Returns:
      流程服务
    • getRecordById

      public FlowRecord getRecordById(long id)
    • findOperatorByIds

      public List<IFlowOperator> findOperatorByIds(List<Long> ids)
    • getOperatorById

      public IFlowOperator getOperatorById(long id)
    • saveDelayTask

      public void saveDelayTask(DelayTask delayTask)
    • deleteDelayTask

      public void deleteDelayTask(DelayTask delayTask)
    • saveRecords

      public void saveRecords(List<FlowRecord> flowRecords)
    • saveRecord

      public void saveRecord(FlowRecord flowRecord)
    • findCurrentNodeRecords

      public List<FlowRecord> findCurrentNodeRecords(long fromId, String nodeId)
    • findProcessRecords

      public List<FlowRecord> findProcessRecords(String processId)
    • findAfterRecords

      public List<FlowRecord> findAfterRecords(String processId, long currentId)
    • getParallelBranchTriggerCount

      public int getParallelBranchTriggerCount(String parallelId)
    • addParallelTriggerCount

      public void addParallelTriggerCount(String parallelId)
    • clearParallelTriggerCount

      public void clearParallelTriggerCount(String parallelId)
    • findDelayTasks

      public List<DelayTask> findDelayTasks()