Interface PolicyRepositoryService

    • 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.
      • getPolicyModel

        PolicyModel getPolicyModel​(java.lang.String policyDefinitionId)
        Returns the PolicyModel including all policy model info.
      • getPolicyModelByKey

        PolicyModel getPolicyModelByKey​(java.lang.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​(java.lang.String policyDefinitionKey,
                                                   java.lang.String tenantId)
        Returns the PolicyModel including all policy model info, using the policy definition key and resolving the key to the latest version.
      • convertPolicyDefinitionModelToJson

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

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

        PolicyDefinition getPolicyDefinitionByKey​(java.lang.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​(java.lang.String policyDefinitionKey,
                                                             java.lang.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.
      • addPolicyDefinitionLink

        PolicyDefinitionLink addPolicyDefinitionLink​(java.lang.String policyDefinitionId,
                                                     java.lang.String type,
                                                     java.lang.String linkValue)
        Adds a new PolicyDefinitionLink for the given policy definition id.
      • deletePolicyDefinitionLink

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

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

        PolicyDefinitionQuery createPolicyDefinitionQuery()
        Query case definitions