Class DXWorkflow
- java.lang.Object
-
- com.dnanexus.DXObject
-
- com.dnanexus.DXDataObject
-
- com.dnanexus.DXWorkflow
-
- All Implemented Interfaces:
DXExecutable<DXAnalysis>
public class DXWorkflow extends DXDataObject implements DXExecutable<DXAnalysis>
A workflow.Note that these Java bindings do not supply any high-level way to modify the workflow. Please use the command-line tools or see the API documentation for workflows.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDXWorkflow.BuilderBuilder class for creating a newDXWorkflowobject.static classDXWorkflow.DescribeContains metadata for a workflow.static classDXWorkflow.Modification<T>Represents the result of a workflow-modifying operation, along with the workflow's edit version after that operation.static classDXWorkflow.StageA workflow stage.-
Nested classes/interfaces inherited from class com.dnanexus.DXDataObject
DXDataObject.DescribeOptions
-
-
Field Summary
-
Fields inherited from class com.dnanexus.DXDataObject
cachedDescribe
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DXWorkflow.Modification<DXWorkflow.Stage>addStage(DXApplet applet, String name, Object stageInputs, int editVersion)Adds a stage to a workflow.DXWorkflowclose()Closes the data object.DXWorkflowcloseAndWait()Closes the data object and waits until the close operation is complete.DXWorkflow.Describedescribe()Returns metadata about the data object.DXWorkflow.Describedescribe(DXDataObject.DescribeOptions options)Returns metadata about the data object, specifying which optional fields are to be returned and what project to obtain project-specific metadata from.DXWorkflow.DescribegetCachedDescribe()Returns metadata about the data object, likeDXDataObject.describe(), but without making an API call.static DXWorkflowgetInstance(String workflowId)Returns aDXWorkflowassociated with an existing workflow.static DXWorkflowgetInstance(String workflowId, DXContainer project)Returns aDXWorkflowassociated with an existing workflow in a particular project or container.static DXWorkflowgetInstanceWithEnvironment(String workflowId, DXContainer project, DXEnvironment env)Returns aDXWorkflowassociated with an existing workflow in a particular project using the specified environment.static DXWorkflowgetInstanceWithEnvironment(String workflowId, DXEnvironment env)Returns aDXWorkflowassociated with an existing workflow using the specified environment.ExecutableRunner<DXAnalysis>newRun()Returns an object for creating a new run of this executable.static DXWorkflow.BuildernewWorkflow()Returns a Builder object for creating a newDXWorkflow.static DXWorkflow.BuildernewWorkflowWithEnvironment(DXEnvironment env)Returns a Builder object for creating a newDXWorkflowusing the specified environment.-
Methods inherited from class com.dnanexus.DXDataObject
addTags, addTypes, checkCachedDescribeAvailable, checkDXLinkFormat, equals, getLinkAsJson, getProject, hashCode, listProjects, putAllProperties, putAllProperties, putProperty, removeProperty, removeTags, removeTypes, rename, setDetails, setVisibility
-
Methods inherited from class com.dnanexus.DXObject
apiCallOnObject, apiCallOnObject, getId, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.dnanexus.DXExecutable
getId
-
-
-
-
Method Detail
-
getInstance
public static DXWorkflow getInstance(String workflowId)
Returns aDXWorkflowassociated with an existing workflow.- Throws:
NullPointerException- IfworkflowIdis null
-
getInstance
public static DXWorkflow getInstance(String workflowId, DXContainer project)
Returns aDXWorkflowassociated with an existing workflow in a particular project or container.- Throws:
NullPointerException- IfworkflowIdorcontaineris null
-
getInstanceWithEnvironment
public static DXWorkflow getInstanceWithEnvironment(String workflowId, DXContainer project, DXEnvironment env)
Returns aDXWorkflowassociated with an existing workflow in a particular project using the specified environment.- Throws:
NullPointerException- IfworkflowIdorcontaineris null
-
getInstanceWithEnvironment
public static DXWorkflow getInstanceWithEnvironment(String workflowId, DXEnvironment env)
Returns aDXWorkflowassociated with an existing workflow using the specified environment.- Throws:
NullPointerException- IfworkflowIdis null
-
newWorkflow
public static DXWorkflow.Builder newWorkflow()
Returns a Builder object for creating a newDXWorkflow.- Returns:
- a newly initialized builder object
-
newWorkflowWithEnvironment
public static DXWorkflow.Builder newWorkflowWithEnvironment(DXEnvironment env)
Returns a Builder object for creating a newDXWorkflowusing the specified environment.- Parameters:
env- environment to use to make API calls- Returns:
- a newly initialized builder object
-
close
public DXWorkflow close()
Description copied from class:DXDataObjectCloses the data object.Returns the same object so you can chain calls.
- Overrides:
closein classDXDataObject- Returns:
- the same
DXDataObject
-
closeAndWait
public DXWorkflow closeAndWait()
Description copied from class:DXDataObjectCloses the data object and waits until the close operation is complete.Returns the same object so you can chain calls.
- Overrides:
closeAndWaitin classDXDataObject- Returns:
- the same
DXDataObject
-
describe
public DXWorkflow.Describe describe()
Description copied from class:DXDataObjectReturns metadata about the data object.The properties and details fields will not be returned, and any project-specific metadata fields will be selected from an arbitrary project in which the requesting user has access to this object. To change either of these aspects of this behavior, use
DXDataObject.describe(DescribeOptions)instead.- Overrides:
describein classDXDataObject- Returns:
- a
Describecontaining the data object's metadata.
-
describe
public DXWorkflow.Describe describe(DXDataObject.DescribeOptions options)
Description copied from class:DXDataObjectReturns metadata about the data object, specifying which optional fields are to be returned and what project to obtain project-specific metadata from.- Overrides:
describein classDXDataObject- Parameters:
options-DescribeOptionsobject specifying how thedescriberequest is to be made.- Returns:
- a
Describecontaining the data object's metadata.
-
getCachedDescribe
public DXWorkflow.Describe getCachedDescribe()
Description copied from class:DXDataObjectReturns metadata about the data object, likeDXDataObject.describe(), but without making an API call.This cached describe info is only available if this object appears in the result of a
DXSearch.findDataObjects()call that specifiedDXSearch.FindDataObjectsRequestBuilder.includeDescribeOutput(), and the describe info that is returned reflects the state of the object at the time that the search was performed.- Overrides:
getCachedDescribein classDXDataObject- Returns:
- a
Describecontaining the data object's metadata
-
newRun
public ExecutableRunner<DXAnalysis> newRun()
Description copied from interface:DXExecutableReturns an object for creating a new run of this executable.- Specified by:
newRunin interfaceDXExecutable<DXAnalysis>- Returns:
- executable runner
-
addStage
public DXWorkflow.Modification<DXWorkflow.Stage> addStage(DXApplet applet, String name, Object stageInputs, int editVersion)
Adds a stage to a workflow.- Parameters:
applet- Applet to runname- stage namestageInputs- inputs to be provided to the appleteditVersion- current version of the workflow- Returns:
- Modification object containing the new stage
-
-