Interface WorkflowTemplateDao

All Known Implementing Classes:
DefaultWorkflowTemplateDao

public interface WorkflowTemplateDao
Dao to find workflow templates
  • Method Details

    • findWorkflowTemplatesByUser

      List<WorkflowTemplateModel> findWorkflowTemplatesByUser(UserModel user)
      Parameters:
      user - to which templates belongs to
      Returns:
      all workflow templates that user is owner
    • findWorkflowTemplatesVisibleForPrincipal

      List<WorkflowTemplateModel> findWorkflowTemplatesVisibleForPrincipal(PrincipalModel principal)
      Parameters:
      principal - to which templates is visible to
      Returns:
      all workflow templates that are visible to the principal
    • findAdhocWorkflowTemplates

      List<WorkflowTemplateModel> findAdhocWorkflowTemplates()
      Returns:
      special template for adhoc workflows
    • findAdhocWorkflowTemplateDummyOwner

      EmployeeModel findAdhocWorkflowTemplateDummyOwner()
      Returns:
      user which is used for adhoc template, null if it's missing. See project properties file for default value.
    • findAllWorkflowTemplates

      List<WorkflowTemplateModel> findAllWorkflowTemplates()
      Returns:
      all defined workflow templates
    • findWorkflowActionTemplatesByCode

      List<WorkflowActionTemplateModel> findWorkflowActionTemplatesByCode(String code)
      Returns:
      workflow actions that match a given code
    • findWorkflowTemplatesByCode

      List<WorkflowTemplateModel> findWorkflowTemplatesByCode(String code)
      Returns:
      workflow templates that match a given code
    • findWorkflowLinkTemplatesByAction

      Collection<LinkModel> findWorkflowLinkTemplatesByAction(AbstractWorkflowActionModel action)
      Parameters:
      action - workflow action which is target of the link
      Returns:
      collection of link models
    • findWorkflowLinkTemplatesByDecision

      Collection<LinkModel> findWorkflowLinkTemplatesByDecision(AbstractWorkflowDecisionModel decision)
      Parameters:
      decision - workflow decision which is the source of the link
      Returns:
      collection of link models
    • findWorkflowLinkTemplates

      Collection<LinkModel> findWorkflowLinkTemplates(AbstractWorkflowDecisionModel decision, AbstractWorkflowActionModel action)
      Parameters:
      decision - workflow decision which is the source of the link
      action - workflow action which is target of the link
      Returns:
      collection of link models