Class WorkflowRunViewService

java.lang.Object
com.axelor.workflow.view.WorkflowRunViewService

public class WorkflowRunViewService extends Object
Assembles the viewer's answer for one run. MetaWorkflowRunController decides who may look; this class fills in the admin-tier extras when told the reader is an administrator.
  • Constructor Details

    • WorkflowRunViewService

      public WorkflowRunViewService()
  • Method Details

    • view

      public WorkflowRunView view(Long runId, boolean admin)
      The run, drawn. Returns null when there is no such run.
    • calledVia

      public static String calledVia(WorkflowGraphView graph, String subflowNode)
      "call" or "boundary", from the kind of subflowNode in graph; null when it is blank or not in the graph. Shared with MetaWorkflowRunController.
    • graphOf

      public WorkflowGraphView graphOf(MetaWorkflowRun run)
      The graph this run walks, at its pinned revision, with expressions withheld. Public for MetaWorkflowRunController's call-or-boundary question.
    • graphOf

      public WorkflowGraphView graphOf(MetaWorkflowRun run, boolean admin)
      Parameters:
      admin - whether expressions may be drawn; see WorkflowGraphBuilder