Interface PolicyRepositoryService

    • Method Detail

      • getDeploymentResourceNames

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

        InputStream getResourceAsStream​(String deploymentId,
                                        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:
        FlowableObjectNotFoundException - when the resource doesn't exist in the given deployment or when no deployment exists for the given deploymentId.
      • getPolicyModelByKey

        PolicyModel getPolicyModelByKey​(String policyDefinitionKey)
        Returns the PolicyModel including all policy model info, using the policy definition key and resolving the key to the latest version.
      • getPolicyModelByKeyAndTenantId

        PolicyModel getPolicyModelByKeyAndTenantId​(String policyDefinitionKey,
                                                   String tenantId)
        Returns the PolicyModel including all policy model info, using the policy definition key and resolving the key to the latest version.
      • convertPolicyDefinitionModelToJson

        String convertPolicyDefinitionModelToJson​(String policyDefinitionId)
        Returns the PolicyModel as a JSON string.
      • getPolicyDefinition

        PolicyDefinition getPolicyDefinition​(String policyDefinitionId)
        Returns the PolicyDefinition including all policy information like additional Properties (e.g. documentation).
      • getPolicyDefinitionByKey

        PolicyDefinition getPolicyDefinitionByKey​(String policyDefinitionKey)
        Returns the PolicyDefinition including all policy information like additional Properties (e.g. documentation). The latest version for the given key will be returned.
      • getPolicyDefinitionByKeyAndTenantId

        PolicyDefinition getPolicyDefinitionByKeyAndTenantId​(String policyDefinitionKey,
                                                             String tenantId)
        Returns the PolicyDefinition including all policy information like additional Properties (e.g. documentation). The latest version for the given key will be returned.
      • deletePolicyDefinitionLink

        void deletePolicyDefinitionLink​(String policyDefinitionLinkId)
        Deletes an PolicyDefinitionLink for the given policy definition link id.
      • deleteDeployment

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

        PolicyDefinitionQuery createPolicyDefinitionQuery()
        Query case definitions