Class WorkflowSearchRequest

All Implemented Interfaces:
Serializable

public class WorkflowSearchRequest extends IndexSearchDSL
See Also:
  • Constructor Details

  • Method Details

    • search

      public WorkflowSearchResponse search() throws AtlanException
      Run the search.
      Returns:
      results from running the search
      Throws:
      AtlanException - on any API communication issue
    • search

      public WorkflowSearchResponse search(AtlanClient client) throws AtlanException
      Run the search.
      Parameters:
      client - connectivity to the Atlan tenant on which to run the search
      Returns:
      results from running the search
      Throws:
      AtlanException - on any API communication issue
    • findLatestRun

      public static WorkflowSearchResult findLatestRun(String workflowName) throws AtlanException
      Find the latest run of a given workflow.
      Parameters:
      workflowName - name of the workflow for which to find the latest run
      Returns:
      the singular result giving the latest run of the workflow
      Throws:
      AtlanException - on any API communication issue
    • findLatestRun

      public static WorkflowSearchResult findLatestRun(AtlanClient client, String workflowName) throws AtlanException
      Find the latest run of a given workflow.
      Parameters:
      client - connectivity to the Atlan tenant on which to find the latest run of the workflow
      workflowName - name of the workflow for which to find the latest run
      Returns:
      the singular result giving the latest run of the workflow
      Throws:
      AtlanException - on any API communication issue
    • findCurrentRun

      public static WorkflowSearchResult findCurrentRun(AtlanClient client, String workflowName) throws AtlanException
      Find the most current, still-running run of a given workflow.
      Parameters:
      client - connectivity to the Atlan tenant on which to find the current run of the workflow
      workflowName - name of the workflow for which to find the current run
      Returns:
      the singular result giving the latest currently-running run of the workflow, or null if it is not currently running
      Throws:
      AtlanException - on any API communication issue
    • findRunByName

      public static WorkflowSearchResult findRunByName(String workflowRunName) throws AtlanException
      Find a specific run of a given workflow.
      Parameters:
      workflowRunName - name of the specific workflow run to find
      Returns:
      the singular result giving the specific run of the workflow
      Throws:
      AtlanException - on any API communication issue
    • findRunByName

      public static WorkflowSearchResult findRunByName(AtlanClient client, String workflowRunName) throws AtlanException
      Find a specific run of a given workflow.
      Parameters:
      client - connectivity to the Atlan tenant on which to find a specific run of the workflow
      workflowRunName - name of the specific workflow run to find
      Returns:
      the singular result giving the specific run of the workflow
      Throws:
      AtlanException - on any API communication issue
    • findByType

      public static List<WorkflowSearchResult> findByType(AtlanPackageType type, int maxResults) throws AtlanException
      Find workflows based on their type.
      Parameters:
      type - of the workflow
      maxResults - the maximum number of results to retrieve
      Returns:
      the list of workflows of the provided type, with the most-recently created first
      Throws:
      AtlanException - on any API communication issue
    • findByType

      public static List<WorkflowSearchResult> findByType(AtlanClient client, AtlanPackageType type, int maxResults) throws AtlanException
      Find workflows based on their type.
      Parameters:
      client - connectivity to the Atlan tenant on which to find the workflows
      type - of the workflow
      maxResults - the maximum number of results to retrieve
      Returns:
      the list of workflows of the provided type, with the most-recently created first
      Throws:
      AtlanException - on any API communication issue
    • findById

      public static WorkflowSearchResult findById(String id) throws AtlanException
      Find a workflow based on is ID (e.g. atlan-snowflake-miner-1714638976). Note: only workflows that have been run will be found.
      Parameters:
      id - unique identifier of the specific workflow to find
      Returns:
      singular result containing the workflow, or null if not found
      Throws:
      AtlanException - on any API communication issue
    • findById

      public static WorkflowSearchResult findById(AtlanClient client, String id) throws AtlanException
      Find a workflow based on is ID (e.g. atlan-snowflake-miner-1714638976). Note: only workflows that have been run will be found.
      Parameters:
      client - connectivity to the Atlan tenant on which to find the workflow
      id - unique identifier of the specific workflow to find
      Returns:
      singular result containing the workflow, or null if not found
      Throws:
      AtlanException - on any API communication issue
    • builder

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class IndexSearchDSL
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class IndexSearchDSL
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class IndexSearchDSL
    • toString

      public String toString()
      Description copied from class: AtlanObject
      Overrides:
      toString in class IndexSearchDSL