Package com.atlan.model.workflow
Class WorkflowSearchRequest
java.lang.Object
com.atlan.model.core.AtlanObject
com.atlan.model.search.IndexSearchDSL
com.atlan.model.workflow.WorkflowSearchRequest
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
WorkflowSearchRequest.WorkflowSearchRequestBuilder<C extends WorkflowSearchRequest,
B extends WorkflowSearchRequest.WorkflowSearchRequestBuilder<C, B>> Nested classes/interfaces inherited from class com.atlan.model.search.IndexSearchDSL
IndexSearchDSL.IndexSearchDSLBuilder<C extends IndexSearchDSL,
B extends IndexSearchDSL.IndexSearchDSLBuilder<C, B>> Nested classes/interfaces inherited from class com.atlan.model.core.AtlanObject
AtlanObject.AtlanObjectBuilder<C extends AtlanObject,
B extends AtlanObject.AtlanObjectBuilder<C, B>> -
Field Summary
Fields inherited from class com.atlan.model.search.IndexSearchDSL
DEFAULT_PAGE_SIZE
Fields inherited from class com.atlan.model.core.AtlanObject
rawJsonObject
-
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected boolean
boolean
static WorkflowSearchResult
findById
(AtlanClient client, String id) Find a workflow based on is ID (e.g.static WorkflowSearchResult
Find a workflow based on is ID (e.g.static List<WorkflowSearchResult>
findByType
(AtlanClient client, AtlanPackageType type, int maxResults) Find workflows based on their type.static List<WorkflowSearchResult>
findByType
(AtlanPackageType type, int maxResults) Find workflows based on their type.static WorkflowSearchResult
findCurrentRun
(AtlanClient client, String workflowName) Find the most current, still-running run of a given workflow.static WorkflowSearchResult
findLatestRun
(AtlanClient client, String workflowName) Find the latest run of a given workflow.static WorkflowSearchResult
findLatestRun
(String workflowName) Find the latest run of a given workflow.static WorkflowSearchResult
findRunByName
(AtlanClient client, String workflowRunName) Find a specific run of a given workflow.static WorkflowSearchResult
findRunByName
(String workflowRunName) Find a specific run of a given workflow.int
hashCode()
search()
Run the search.search
(AtlanClient client) Run the search.toString()
Methods inherited from class com.atlan.model.search.IndexSearchDSL
_internal, builder, getAggregations, getFrom, getQuery, getSize, getSort, getTrackTotalHits, of, toBuilder
Methods inherited from class com.atlan.model.core.AtlanObject
getRawJsonObject, setRawJsonObject, toJson
-
Constructor Details
-
WorkflowSearchRequest
-
-
Method Details
-
search
Run the search.- Returns:
- results from running the search
- Throws:
AtlanException
- on any API communication issue
-
search
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
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 workflowworkflowName
- 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 workflowworkflowName
- 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
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 workflowworkflowRunName
- 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 workflowmaxResults
- 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 workflowstype
- of the workflowmaxResults
- 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
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
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 workflowid
- 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
- Overrides:
equals
in classIndexSearchDSL
-
canEqual
- Overrides:
canEqual
in classIndexSearchDSL
-
hashCode
public int hashCode()- Overrides:
hashCode
in classIndexSearchDSL
-
toString
Description copied from class:AtlanObject
- Overrides:
toString
in classIndexSearchDSL
-