Class RunPosition

java.lang.Object
com.axelor.workflow.exec.RunPosition

public final class RunPosition extends Object
Where a run itself is: its root branch, the one position that belongs to no split. Returns the row, since a walk reads its position several times and writes it once.
  • Method Details

    • of

      public static MetaWorkflowBranch of(MetaWorkflowRun run)
      The run's own position, or null for a run recorded after the fact rather than walked.
    • of

      public static MetaWorkflowBranch of(Long runId)
      The same, by id.
    • save

      public static MetaWorkflowBranch save(MetaWorkflowBranch position)
      Save a position a caller has moved.
    • storedVars

      public static String storedVars(Long positionId)
      The run's stored variables, read past this transaction's copy of the row, for the guarded merge of what parallel branches wrote.