public class DXWorkflow extends DXDataObject implements DXExecutable<DXAnalysis>
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.
Modifier and Type | Class and Description |
---|---|
static class |
DXWorkflow.Builder
Builder class for creating a new
DXWorkflow object. |
static class |
DXWorkflow.Describe
Contains metadata for a workflow.
|
static class |
DXWorkflow.Modification<T>
Represents the result of a workflow-modifying operation, along with the
workflow's edit version after that operation.
|
static class |
DXWorkflow.Stage
A workflow stage.
|
DXDataObject.DescribeOptions
cachedDescribe
Modifier and Type | Method and Description |
---|---|
DXWorkflow.Modification<DXWorkflow.Stage> |
addStage(DXApplet applet,
String name,
Object stageInputs,
int editVersion)
Adds a stage to a workflow.
|
DXWorkflow |
close()
Closes the data object.
|
DXWorkflow |
closeAndWait()
Closes the data object and waits until the close operation is complete.
|
DXWorkflow.Describe |
describe()
Returns metadata about the data object.
|
DXWorkflow.Describe |
describe(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.Describe |
getCachedDescribe()
Returns metadata about the data object, like
DXDataObject.describe() , but without
making an API call. |
static DXWorkflow |
getInstance(String workflowId)
Returns a
DXWorkflow associated with an existing workflow. |
static DXWorkflow |
getInstance(String workflowId,
DXContainer project)
Returns a
DXWorkflow associated with an existing workflow in a particular project or
container. |
static DXWorkflow |
getInstanceWithEnvironment(String workflowId,
DXContainer project,
DXEnvironment env)
Returns a
DXWorkflow associated with an existing workflow in a particular project
using the specified environment. |
static DXWorkflow |
getInstanceWithEnvironment(String workflowId,
DXEnvironment env)
Returns a
DXWorkflow associated with an existing workflow using the specified
environment. |
ExecutableRunner<DXAnalysis> |
newRun()
Returns an object for creating a new run of this executable.
|
static DXWorkflow.Builder |
newWorkflow()
Returns a Builder object for creating a new
DXWorkflow . |
static DXWorkflow.Builder |
newWorkflowWithEnvironment(DXEnvironment env)
Returns a Builder object for creating a new
DXWorkflow using the specified
environment. |
addTags, addTypes, checkCachedDescribeAvailable, checkDXLinkFormat, equals, getLinkAsJson, getProject, hashCode, listProjects, putAllProperties, putAllProperties, putProperty, removeProperty, removeTags, removeTypes, rename, setDetails, setVisibility
apiCallOnObject, apiCallOnObject, getId, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId
public static DXWorkflow getInstance(String workflowId)
DXWorkflow
associated with an existing workflow.NullPointerException
- If workflowId
is nullpublic static DXWorkflow getInstance(String workflowId, DXContainer project)
DXWorkflow
associated with an existing workflow in a particular project or
container.NullPointerException
- If workflowId
or container
is nullpublic static DXWorkflow getInstanceWithEnvironment(String workflowId, DXContainer project, DXEnvironment env)
DXWorkflow
associated with an existing workflow in a particular project
using the specified environment.NullPointerException
- If workflowId
or container
is nullpublic static DXWorkflow getInstanceWithEnvironment(String workflowId, DXEnvironment env)
DXWorkflow
associated with an existing workflow using the specified
environment.NullPointerException
- If workflowId
is nullpublic static DXWorkflow.Builder newWorkflow()
DXWorkflow
.public static DXWorkflow.Builder newWorkflowWithEnvironment(DXEnvironment env)
DXWorkflow
using the specified
environment.env
- environment to use to make API callspublic DXWorkflow close()
DXDataObject
Returns the same object so you can chain calls.
close
in class DXDataObject
DXDataObject
public DXWorkflow closeAndWait()
DXDataObject
Returns the same object so you can chain calls.
closeAndWait
in class DXDataObject
DXDataObject
public DXWorkflow.Describe describe()
DXDataObject
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.
describe
in class DXDataObject
Describe
containing the data object's metadata.public DXWorkflow.Describe describe(DXDataObject.DescribeOptions options)
DXDataObject
describe
in class DXDataObject
options
- DescribeOptions
object specifying how the describe
request is
to be made.Describe
containing the data object's metadata.public DXWorkflow.Describe getCachedDescribe()
DXDataObject
DXDataObject.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 specified
DXSearch.FindDataObjectsRequestBuilder.includeDescribeOutput()
, and the describe info
that is returned reflects the state of the object at the time that the search was performed.
getCachedDescribe
in class DXDataObject
Describe
containing the data object's metadatapublic ExecutableRunner<DXAnalysis> newRun()
DXExecutable
newRun
in interface DXExecutable<DXAnalysis>
public DXWorkflow.Modification<DXWorkflow.Stage> addStage(DXApplet applet, String name, Object stageInputs, int editVersion)
applet
- Applet to runname
- stage namestageInputs
- inputs to be provided to the appleteditVersion
- current version of the workflowCopyright © 2023. All Rights Reserved.