Class WorkflowVersion

    • Constructor Detail

      • WorkflowVersion

        public WorkflowVersion()
    • Method Detail

      • addState

        public void addState​(WorkflowState state)
        Adds the given state to this version, and sets WorkflowState.getVersion() to this version.
        Parameters:
        state - State to add to this version.
      • cloneBasics

        public WorkflowVersion cloneBasics()
        Returns:
        A new task instance with all fields that do not reference other entities copied from this instance.
      • getId

        public Long getId()
        Specified by:
        getId in interface de.xima.cmn.dao.interfaces.IEntity<Long>
      • getMainProcess

        public WorkflowProcess getMainProcess()
        Returns:
        The main workflow process of the form. This is the process that is started when the form is submitted.
      • getMaxBackupCount

        public int getMaxBackupCount()
        Returns:
        The maximum number of automatic backups to create for this workflow version. An automatic backup is created when the workflow is saved in the designer.
      • getProject

        public Projekt getProject()
        Returns:
        The project to which this workflow version belongs.
      • getStates

        public List<WorkflowState> getStates()
        Returns:
        A list of all workflow states that belong to this version. Different workflow version may have different states.
      • getUUID

        public String getUUID()
        Specified by:
        getUUID in interface IUUIDEntity
        Returns:
        UUID (Universal Unique Identifier) that identifies this type of entity. Usually is unique within a context, e.g. Mandant, Projekt, ...
      • getVersionNumber

        public long getVersionNumber()
        Specified by:
        getVersionNumber in interface IVersionNumberProviding
        Returns:
        The version number of this workflow version. This is used for sorting the available version of a project.
      • isWorkflowInvalid

        public boolean isWorkflowInvalid()
        Returns:
        true if the configured workflow is invalid, i.e. had at least one error during validation; or false otherwise.
      • setBeschreibung

        @Deprecated
        public void setBeschreibung​(String description)
        Deprecated.
        Parameters:
        description - An arbitrary, localized description for this workflow version.
      • setDescription

        public void setDescription​(String description)
        Parameters:
        description - An arbitrary, localized description for this workflow version.
      • setMainProcess

        public void setMainProcess​(WorkflowProcess mainProcess)
        Parameters:
        mainProcess - The main workflow process that is executed as the workflow of this version. There may be several sub processed that are not executed automatically, but only when requested by the main process.
      • setMaxBackupCount

        public void setMaxBackupCount​(int maxBackupCount)
        Parameters:
        maxBackupCount - The maximum number of automatic backups to create for this workflow version. An automatic backup is created when the workflow is saved in the designer.
      • setProject

        public void setProject​(Projekt project)
        Parameters:
        project - The project to which this workflow version belongs.
      • setStates

        public void setStates​(List<WorkflowState> states)
        Parameters:
        states - A list of all workflow states that belong to this version. Different workflow version may have different states.
      • setUUIDObject

        public void setUUIDObject​(UUID uuid)
        Parameters:
        uuid - The unique UUID for this workflow version. This UUID is unique within the getProject().
      • setVersionNumber

        public void setVersionNumber​(long versionNumber)
        Parameters:
        versionNumber - The version number of this workflow version. This is used for sorting the available version of a project.
      • setWorkflowInvalid

        public void setWorkflowInvalid​(boolean workflowInvalid)
        Parameters:
        workflowInvalid - true if the configured workflow is invalid, i.e. had at least one error during validation; or false otherwise.