Interface WorkflowTemplateDao

    • Method Detail

      • findWorkflowTemplatesByUser

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

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

        java.util.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

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

        java.util.List<WorkflowActionTemplateModel> findWorkflowActionTemplatesByCode​(java.lang.String code)
        Returns:
        workflow actions that match a given code
      • findWorkflowTemplatesByCode

        java.util.List<WorkflowTemplateModel> findWorkflowTemplatesByCode​(java.lang.String code)
        Returns:
        workflow templates that match a given code
      • findWorkflowLinkTemplatesByAction

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

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

        java.util.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