Interface WorkflowDao

All Known Implementing Classes:
DefaultWorkflowDao

public interface WorkflowDao
Dao to find workflows
  • Method Details

    • findAllWorkflows

      List<WorkflowModel> findAllWorkflows(Date dateFrom, Date dateTo)
      Parameters:
      dateFrom - time range start
      dateTo - time range end
      Returns:
      all workflows within given time range but adhoc-workflows are not included. Give null's if no time range needed
    • findAllWorkflows

      SearchResult<WorkflowModel> findAllWorkflows(Date dateFrom, Date dateTo, EnumSet<WorkflowStatus> workflowsStatuses, int startIndex, int pageSize)
      Returns:
      all workflows within given time range and with specified status but adhoc-workflows are not included.
    • findAllAdhocWorkflows

      List<WorkflowModel> findAllAdhocWorkflows(Date adhocDateFrom, Date adhocDateTo)
      Parameters:
      adhocDateFrom - time range start
      adhocDateTo - time range end
      Returns:
      all adhoc-workflows within given time range. Give null's if no time range needed
    • findAllAdhocWorkflows

      SearchResult<WorkflowModel> findAllAdhocWorkflows(Date adhocDateFrom, Date adhocDateTo, EnumSet<WorkflowStatus> workflowsStatuses, int startIndex, int pageSize)
      Returns:
      all adhoc-workflows within given time range and specified status
    • findWorkflowsByUserAndTemplate

      List<WorkflowModel> findWorkflowsByUserAndTemplate(UserModel user, WorkflowTemplateModel template)
      Parameters:
      user - to which workflows are assigned to
      template - for workflow
      Returns:
      workflows for user and template
    • findWorkflowsByCode

      List<WorkflowModel> findWorkflowsByCode(String code)
      Searches for workflows by given code
      Parameters:
      code -
      Returns:
      workflows with given code