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
Nested ClassesModifier and TypeClassDescriptionstatic classWorkflowSearchRequest.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_SIZEFields inherited from class com.atlan.model.core.AtlanObject
rawJsonObject -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanstatic WorkflowSearchResultfindById(AtlanClient client, String id) 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 WorkflowSearchResultfindCurrentRun(AtlanClient client, String workflowName) Find the most current, still-running run of a given workflow.static WorkflowSearchResultfindLatestRun(AtlanClient client, String workflowName) Find the latest run of a given workflow.static WorkflowSearchResultfindRunByName(AtlanClient client, String workflowRunName) Find a specific run of a given workflow.inthashCode()search(AtlanClient client) Run the search.toString()Methods inherited from class com.atlan.model.search.IndexSearchDSL
_internal, builder, getAggregations, getFrom, getPageOffsets, getQuery, getSize, getSort, getTrackTotalHits, of, toBuilderMethods inherited from class com.atlan.model.core.AtlanObject
getRawJsonObject, setRawJsonObject, toJson
-
Constructor Details
-
WorkflowSearchRequest
-
-
Method Details
-
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
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
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(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:
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:
equalsin classIndexSearchDSL
-
canEqual
- Overrides:
canEqualin classIndexSearchDSL
-
hashCode
public int hashCode()- Overrides:
hashCodein classIndexSearchDSL
-
toString
Description copied from class:AtlanObject- Overrides:
toStringin classIndexSearchDSL
-