Interface WorkflowObject

    • Method Detail

      • addDataObject

        void addDataObject​(DataflowWrapperObject newDataObject)
        Adds a data-element to the workflow.
        Parameters:
        newDataObject - The new data-element.
      • getDataObjects

        List<DataflowWrapperObject> getDataObjects()
        Returns all data-elements of this workflow.
        Returns:
        List of data-elements.
      • getDataObject

        DataflowWrapperObject getDataObject​(String id)
        Returns the data-element with the given id.
        Parameters:
        id - The id of the data-element to return.
        Returns:
        The data-element-object, if the object was found; NULL otherwise.
      • removeDataObject

        boolean removeDataObject​(String id)
        Removes the data-element with the given id.
        Parameters:
        id - The id of the data-element to remove.
        Returns:
        TRUE if the remove-operation was successful; FALSE otherwise.
      • getAtomicDataObjects

        List<DataflowWrapperObject> getAtomicDataObjects()
        Returns a list of all non-aggregated data-elements of the workflow.
        Returns:
        List of all non-aggregated data-elements.
      • getModel

        Model getModel()
        Returns the first sequence of the workflow. In many cases a workflow does only have one sequence. This method ist just a shortcut for getting all sequences and fetching the first of those.
        Specified by:
        getModel in interface DataObject
        Returns:
        If available, first sequence of the workflow; NULL otherwise.
      • registerEventListener

        void registerEventListener​(WorkflowBlockListener consumer)
        Registers the given event-consumer for changes happening to the block-orientied workflow-objectmodel.
        Parameters:
        consumer - The consumer of the events.
      • unregisterEventListener

        void unregisterEventListener​(WorkflowBlockListener consumer)
        Deregisters the given event-consumer for changes happening to the block-oriented workflow-objectmodel. Events are not therefore no longer relayed to this consumer.
        Parameters:
        consumer - The consumer of the events.
      • getEventListeners

        List<WorkflowBlockListener> getEventListeners()
        Returns the list of consumers for the events of the block-oriented workflow-objectmodel.
        Returns:
        List of consumers.
      • getSequence

        SequenceObject getSequence()
        Returns the main sequence of the workflow.
      • setSequence

        void setSequence​(SequenceObject sequence)
        Sets the main sequence of the workflow.
      • getGraph

        NESTWorkflowObject getGraph()
        Returns the Graph-object associated with the stored workflow-object.
        Returns:
        Corresponding Graph-object for the workflow.
      • enableGraph

        void enableGraph​(WorkflowObject.GRAPHTYPE type)
        Attaches a Graph-object to the block-oriented storage of the workflow. The Graph-object will be immedeatly updated to the current state and automatically updated if there are changes in the workflow. Re-enabling a specific GRAPHCONVERSIONTYPE does not have any effect. Switching a graph-representation is possible by calling the method with a different GRAPHCONVERSIONTYPE.
      • getAllTasks

        Set<TaskObject> getAllTasks()
        Returns all tasks from the workflow
        Returns: