Package com.dnanexus

Class 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.

    • Method Detail

      • getInstance

        public static DXWorkflow getInstance​(String workflowId)
        Returns a DXWorkflow associated with an existing workflow.
        Throws:
        NullPointerException - If workflowId is null
      • getInstance

        public static DXWorkflow getInstance​(String workflowId,
                                             DXContainer project)
        Returns a DXWorkflow associated with an existing workflow in a particular project or container.
        Throws:
        NullPointerException - If workflowId or container is null
      • getInstanceWithEnvironment

        public 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.
        Throws:
        NullPointerException - If workflowId or container is null
      • getInstanceWithEnvironment

        public static DXWorkflow getInstanceWithEnvironment​(String workflowId,
                                                            DXEnvironment env)
        Returns a DXWorkflow associated with an existing workflow using the specified environment.
        Throws:
        NullPointerException - If workflowId is null
      • newWorkflow

        public static DXWorkflow.Builder newWorkflow()
        Returns a Builder object for creating a new DXWorkflow.
        Returns:
        a newly initialized builder object
      • newWorkflowWithEnvironment

        public static DXWorkflow.Builder newWorkflowWithEnvironment​(DXEnvironment env)
        Returns a Builder object for creating a new DXWorkflow using 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: DXDataObject
        Closes the data object.

        Returns the same object so you can chain calls.

        Overrides:
        close in class DXDataObject
        Returns:
        the same DXDataObject
      • closeAndWait

        public DXWorkflow closeAndWait()
        Description copied from class: DXDataObject
        Closes the data object and waits until the close operation is complete.

        Returns the same object so you can chain calls.

        Overrides:
        closeAndWait in class DXDataObject
        Returns:
        the same DXDataObject
      • describe

        public DXWorkflow.Describe describe()
        Description copied from class: DXDataObject
        Returns 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:
        describe in class DXDataObject
        Returns:
        a Describe containing the data object's metadata.
      • describe

        public DXWorkflow.Describe describe​(DXDataObject.DescribeOptions options)
        Description copied from class: DXDataObject
        Returns metadata about the data object, specifying which optional fields are to be returned and what project to obtain project-specific metadata from.
        Overrides:
        describe in class DXDataObject
        Parameters:
        options - DescribeOptions object specifying how the describe request is to be made.
        Returns:
        a Describe containing the data object's metadata.
      • 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 run
        name - stage name
        stageInputs - inputs to be provided to the applet
        editVersion - current version of the workflow
        Returns:
        Modification object containing the new stage