Interface IWorkflowStateDao

    • Method Detail

      • createDefaultStates

        List<WorkflowState> createDefaultStates​(Locale locale)
        Creates the system default workflow states
        Parameters:
        locale - the current locale
        Returns:
        list of system default states
      • getAllByWorkflowVersion

        List<WorkflowState> getAllByWorkflowVersion​(IEntityContext ec,
                                                    Projekt project,
                                                    long versionNumber)
        Finds all states of the given workflow version.
        Parameters:
        ec - Entity context for accessing the database.
        project - Project which contains the workflow version.
        versionNumber - Version number of the workflow version, must belong to the given project.
        Returns:
        A list of all WorkflowState contained in the given workflow version.
      • getAllByWorkflowVersion

        List<WorkflowState> getAllByWorkflowVersion​(IEntityContext ec,
                                                    WorkflowVersion workflowVersion)
        Finds all states of the given workflow version.
        Parameters:
        ec - Entity context for accessing the database.
        workflowVersion - Workflow version for which to retrieve the states.
        Returns:
        A list of all WorkflowState contained in the given workflow version.
      • getAllForActiveVersion

        List<WorkflowState> getAllForActiveVersion​(IEntityContext ec,
                                                   Projekt project)
        Finds all states of the active workflow version of the given project.
        Parameters:
        ec - Entity context for accessing the database.
        project - Project which contains the workflow version.
        Returns:
        A list of all WorkflowState contained in the active workflow version of the given project.
      • getByUuid

        WorkflowState getByUuid​(IEntityContext ec,
                                WorkflowVersion workflowVersion,
                                UUID uuid)
        Finds the state with the given UUID contained in the given workflow version. Note that the WorkflowState.getUuid() is unique only within all states of a certain workflow version.
        Parameters:
        ec - Entity context for accessing the database.
        workflowVersion - The workflow version for which to retrieve the state.
        uuid - The UUID of the workflow state to retrieve.
        Returns:
        A workflow state with the given UUID that is contained in the given workflow version, or null if no such state exists.