Package com.atlan.model.workflow
Class WorkflowResponse
java.lang.Object
com.atlan.model.core.AtlanObject
com.atlan.net.ApiResource
com.atlan.model.workflow.WorkflowResponse
- All Implemented Interfaces:
AtlanResponseInterface
,Serializable
- Direct Known Subclasses:
WorkflowRunResponse
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlan.net.ApiResource
ApiResource.RequestMethod
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.net.ApiResource
CHARSET
Fields inherited from class com.atlan.model.core.AtlanObject
rawJsonObject
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Connectivity to the Atlan tenant where the workflow request was run.protected WorkflowSearchResult
getRunDetails
(String name) Retrieve the workflow run details.getSpec()
int
hashCode()
Monitor the status of the workflow's run, blocking until it has completed.monitorStatus
(org.slf4j.Logger log) Monitor the status of the workflow's run, blocking until it has completed.monitorStatus
(org.slf4j.Logger log, org.slf4j.event.Level level) Monitor the status of the workflow's run, blocking until it has completed.monitorStatus
(org.slf4j.Logger log, org.slf4j.event.Level level, long maxWaitTime) Monitor the status of the workflow's run, blocking until it has completed.void
setClient
(AtlanClient client) Connectivity to the Atlan tenant where the workflow request was run.stop()
Stop this workflow.toString()
Methods inherited from class com.atlan.net.ApiResource
checkNullTypedParams, createQueryString, createQueryString, getLastResponse, getRawJsonObject, request, request, request, request, request, request, request, requestPlainText, requestPlainText, setLastResponse, urlEncode, urlEncodeId
Methods inherited from class com.atlan.model.core.AtlanObject
setRawJsonObject, toJson
-
Constructor Details
-
WorkflowResponse
public WorkflowResponse()
-
-
Method Details
-
monitorStatus
Monitor the status of the workflow's run, blocking until it has completed. Note that this variation of the method will not log any activity, but will simply block until the workflow completes.- Returns:
- the status at completion, or null if the workflow was not even run
- Throws:
AtlanException
- on any errors running the workflowInterruptedException
- on any interruption of the busy wait loop
-
monitorStatus
public AtlanWorkflowPhase monitorStatus(org.slf4j.Logger log) throws AtlanException, InterruptedException Monitor the status of the workflow's run, blocking until it has completed.- Parameters:
log
- through which to log status information (INFO-level, by default)- Returns:
- the status at completion, or null if the workflow was not even run
- Throws:
AtlanException
- on any errors running the workflowInterruptedException
- on any interruption of the busy wait loop
-
monitorStatus
public AtlanWorkflowPhase monitorStatus(org.slf4j.Logger log, org.slf4j.event.Level level) throws AtlanException, InterruptedException Monitor the status of the workflow's run, blocking until it has completed.- Parameters:
log
- through which to log status information (INFO-level)level
- through which to log the status information- Returns:
- the status at completion, or null if the workflow was not even run
- Throws:
AtlanException
- on any errors running the workflowInterruptedException
- on any interruption of the busy wait loop
-
monitorStatus
public AtlanWorkflowPhase monitorStatus(org.slf4j.Logger log, org.slf4j.event.Level level, long maxWaitTime) throws AtlanException, InterruptedException Monitor the status of the workflow's run, blocking until it has completed.- Parameters:
log
- through which to log status information (INFO-level)level
- through which to log the status informationmaxWaitTime
- maximum time to block (in seconds), after which to stop monitoring and return- Returns:
- the status at completion, or null if the workflow was not even run (or has not yet completed when returning)
- Throws:
AtlanException
- on any errors running the workflowInterruptedException
- on any interruption of the busy wait loop
-
stop
Stop this workflow. Note: the result will be returned immediately (async), so you may need to further poll until the workflow is actually stopped.- Returns:
- the result of the stop command, or null if there was no running workflow to stop
- Throws:
AtlanException
- on any API errors stopping the workflow run
-
getRunDetails
Retrieve the workflow run details.- Parameters:
name
- of the workflow template- Returns:
- the details of the workflow run
- Throws:
AtlanException
- on any API errors searching for the workflow run
-
getClient
Connectivity to the Atlan tenant where the workflow request was run. -
getMetadata
-
getSpec
-
getPayload
-
equals
- Overrides:
equals
in classAtlanObject
-
canEqual
- Overrides:
canEqual
in classAtlanObject
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAtlanObject
-
toString
Description copied from class:AtlanObject
- Overrides:
toString
in classApiResource
-
setClient
Connectivity to the Atlan tenant where the workflow request was run.
-