Interface TemplateRepositoryService

    • Method Detail

      • getDeploymentResourceNames

        java.util.List<java.lang.String> getDeploymentResourceNames​(java.lang.String deploymentId)
        Retrieves a list of deployment resources for the given deployment, ordered alphabetically.
        Parameters:
        deploymentId - id of the deployment, cannot be null.
      • getResourceAsStream

        java.io.InputStream getResourceAsStream​(java.lang.String deploymentId,
                                                java.lang.String resourceName)
        Gives access to a deployment resource through a stream of bytes.
        Parameters:
        deploymentId - id of the deployment, cannot be null.
        resourceName - name of the resource, cannot be null.
        Throws:
        org.flowable.common.engine.api.FlowableObjectNotFoundException - when the resource doesn't exist in the given deployment or when no deployment exists for the given deploymentId.
      • getTemplateDefinitionModel

        TemplateModel getTemplateDefinitionModel​(java.lang.String templateDefinitionId)
        Returns the TemplateModel including all template model info.
      • getLatestTemplateDefinitionModelByKey

        TemplateModel getLatestTemplateDefinitionModelByKey​(java.lang.String templateDefinitionKey)
        Returns the TemplateModel including all template model info.
      • getLatestTemplateDefinitionModelByKeyAndTenantId

        TemplateModel getLatestTemplateDefinitionModelByKeyAndTenantId​(java.lang.String templateDefinitionKey,
                                                                       java.lang.String tenantId)
        Returns the TemplateModel including all template model info.
      • getTemplateDefinitionModelToJson

        java.lang.String getTemplateDefinitionModelToJson​(java.lang.String templateDefinitionKey)
        Returns the TemplateModel as a JSON string.
      • getTemplateVariationDefinitionModelToJson

        java.lang.String getTemplateVariationDefinitionModelToJson​(java.lang.String templateVariationDefinitionId)
        Returns the TemplateVariationModel as a JSON string.
      • deleteDeployment

        void deleteDeployment​(java.lang.String deploymentId)
        Deletes the given deployment.
        Parameters:
        deploymentId - id of the deployment, cannot be null.
      • createTemplateDefinitionQuery

        TemplateDefinitionQuery createTemplateDefinitionQuery()
        Query template definitions