Class WorkflowTracker<T extends WorkflowMeta>


  • public class WorkflowTracker<T extends WorkflowMeta>
    extends Object
    Responsible for tracking the execution of a workflow as a hierarchy.
    • Constructor Detail

      • WorkflowTracker

        public WorkflowTracker​(T workflowMeta)
        Parameters:
        workflowMeta - the workflow metadata to keep track of (with maximum 5000 children)
      • WorkflowTracker

        public WorkflowTracker​(T workflowMeta,
                               int maxChildren)
        Parameters:
        workflowMeta - The workflow metadata to track
        maxChildren - The maximum number of children to keep track of (1000 is the default)
      • WorkflowTracker

        public WorkflowTracker​(T workflowMeta,
                               ActionResult result)
        Creates a workflow tracker with a single result (maxChildren children are kept)
        Parameters:
        workflowMeta - the workflow metadata to keep track of
        result - the action result to track.
      • WorkflowTracker

        public WorkflowTracker​(T workflowMeta,
                               int maxChildren,
                               ActionResult result)
        Creates a workflow tracker with a single result
        Parameters:
        workflowMeta - the workflow metadata to keep track of
        maxChildren - The maximum number of children to keep track of
        result - the action result to track.
    • Method Detail

      • addWorkflowTracker

        public void addWorkflowTracker​(WorkflowTracker workflowTracker)
      • getWorkflowTracker

        public WorkflowTracker getWorkflowTracker​(int i)
      • nrWorkflowTrackers

        public int nrWorkflowTrackers()
      • getWorkflowTrackers

        public List<WorkflowTracker> getWorkflowTrackers()
        Returns a list that contains all workflow trackers. The list is created as a defensive copy of internal trackers' storage.
        Returns:
        list of workflow trackers
      • setWorkflowTrackers

        public void setWorkflowTrackers​(List<WorkflowTracker> workflowTrackers)
        Parameters:
        workflowTrackers - The workflowTrackers to set.
      • getActionResult

        public ActionResult getActionResult()
        Returns:
        Returns the result.
      • setActionResult

        public void setActionResult​(ActionResult result)
        Parameters:
        result - The result to set.
      • clear

        public void clear()
      • findWorkflowTracker

        public WorkflowTracker findWorkflowTracker​(ActionMeta actionMeta)
        Finds the WorkflowTracker for the action specified. Use this to
        Parameters:
        actionMeta - The action to search the workflow tracker for
        Returns:
        The WorkflowTracker of null if none could be found...
      • getParentWorkflowTracker

        public WorkflowTracker getParentWorkflowTracker()
        Returns:
        Returns the parentWorkflowTracker.
      • setParentWorkflowTracker

        public void setParentWorkflowTracker​(WorkflowTracker parentWorkflowTracker)
        Parameters:
        parentWorkflowTracker - The parentWorkflowTracker to set.
      • getTotalNumberOfItems

        public int getTotalNumberOfItems()
      • getWorfkflowFilename

        public String getWorfkflowFilename()
        Returns:
        the workflowFilename
      • setWorkflowFilename

        public void setWorkflowFilename​(String workflowFilename)
        Parameters:
        workflowFilename - the workflowFilename to set
      • getWorkflowName

        public String getWorkflowName()
        Returns:
        the workflowName
      • setWorkflowName

        public void setWorkflowName​(String workflowName)
        Parameters:
        workflowName - the workflowName to set
      • getMaxChildren

        public int getMaxChildren()
        Returns:
        the maxChildren
      • setMaxChildren

        public void setMaxChildren​(int maxChildren)
        Parameters:
        maxChildren - the maxChildren to set