Class DeploymentBuilderImpl

    • Field Detail

      • isDuplicateFilterEnabled

        protected boolean isDuplicateFilterEnabled
      • deployChangedOnly

        protected boolean deployChangedOnly
      • processDefinitionsActivationDate

        protected java.util.Date processDefinitionsActivationDate
      • nameFromDeployment

        protected java.lang.String nameFromDeployment
      • deployments

        protected java.util.Set<java.lang.String> deployments
      • deploymentResourcesById

        protected java.util.Map<java.lang.String,​java.util.Set<java.lang.String>> deploymentResourcesById
      • deploymentResourcesByName

        protected java.util.Map<java.lang.String,​java.util.Set<java.lang.String>> deploymentResourcesByName
    • Constructor Detail

    • Method Detail

      • addModelInstance

        public DeploymentBuilder addModelInstance​(java.lang.String resourceName,
                                                  CmmnModelInstance modelInstance)
        Description copied from interface: DeploymentBuilder
        Adds a CMMN model to the deployment.
        Specified by:
        addModelInstance in interface DeploymentBuilder
        Parameters:
        resourceName - resource name. See suffix requirements for resource names: {@see DeploymentBuilder}.
        modelInstance - model instance
        Returns:
      • addModelInstance

        public DeploymentBuilder addModelInstance​(java.lang.String resourceName,
                                                  BpmnModelInstance modelInstance)
        Description copied from interface: DeploymentBuilder
        Adds a BPMN model to the deployment.
        Specified by:
        addModelInstance in interface DeploymentBuilder
        Parameters:
        resourceName - resource name. See suffix requirements for resource names: {@see DeploymentBuilder}.
        modelInstance - model instance
        Returns:
      • addModelInstance

        public DeploymentBuilder addModelInstance​(java.lang.String resourceName,
                                                  DmnModelInstance modelInstance)
        Description copied from interface: DeploymentBuilder
        Adds a DMN model to the deployment.
        Specified by:
        addModelInstance in interface DeploymentBuilder
        Parameters:
        resourceName - resource name. See suffix requirements for resource names: {@see DeploymentBuilder}.
        modelInstance - model instance
        Returns:
      • addBytes

        protected DeploymentBuilder addBytes​(java.lang.String resourceName,
                                             byte[] bytes)
      • addDeploymentResourceById

        public DeploymentBuilder addDeploymentResourceById​(java.lang.String deploymentId,
                                                           java.lang.String resourceId)
        Description copied from interface: DeploymentBuilder
        A given resource specified by id and deployment id will be added to the new deployment to re-deploy the given resource.
        Specified by:
        addDeploymentResourceById in interface DeploymentBuilder
      • addDeploymentResourcesById

        public DeploymentBuilder addDeploymentResourcesById​(java.lang.String deploymentId,
                                                            java.util.List<java.lang.String> resourceIds)
        Description copied from interface: DeploymentBuilder
        All given resources specified by id and deployment id will be added to the new deployment to re-deploy the given resource.
        Specified by:
        addDeploymentResourcesById in interface DeploymentBuilder
      • addDeploymentResourceByName

        public DeploymentBuilder addDeploymentResourceByName​(java.lang.String deploymentId,
                                                             java.lang.String resourceName)
        Description copied from interface: DeploymentBuilder
        A given resource specified by name and deployment id will be added to the new deployment to re-deploy the given resource.
        Specified by:
        addDeploymentResourceByName in interface DeploymentBuilder
      • addDeploymentResourcesByName

        public DeploymentBuilder addDeploymentResourcesByName​(java.lang.String deploymentId,
                                                              java.util.List<java.lang.String> resourceNames)
        Description copied from interface: DeploymentBuilder
        All given resources specified by name and deployment id will be added to the new deployment to re-deploy the given resource.
        Specified by:
        addDeploymentResourcesByName in interface DeploymentBuilder
      • enableDuplicateFiltering

        public DeploymentBuilder enableDuplicateFiltering​(boolean deployChangedOnly)
        Description copied from interface: DeploymentBuilder
        Check the resources for duplicates in the set of previous deployments with same deployment source. If no resources have changed in this deployment, its contained resources are not deployed at all. For further configuration, use the parameter deployChangedOnly.
        Specified by:
        enableDuplicateFiltering in interface DeploymentBuilder
        Parameters:
        deployChangedOnly - determines whether only those resources should be deployed that have changed from the previous versions of the deployment. If false, all of the resources are re-deployed if any resource differs.
      • activateProcessDefinitionsOn

        public DeploymentBuilder activateProcessDefinitionsOn​(java.util.Date date)
        Description copied from interface: DeploymentBuilder
        Sets the date on which the process definitions contained in this deployment will be activated. This means that all process definitions will be deployed as usual, but they will be suspended from the start until the given activation date.
        Specified by:
        activateProcessDefinitionsOn in interface DeploymentBuilder
      • deploy

        public Deployment deploy()
        Description copied from interface: DeploymentBuilder

        Deploys all provided sources to the process engine and returns the created deployment.

        The returned Deployment instance has no information about the definitions, which are deployed with that deployment. To access this information you can use the DeploymentBuilder.deployWithResult() method. This method will return an instance of DeploymentWithDefinitions, which contains the information about the successful deployed definitions.

        Specified by:
        deploy in interface DeploymentBuilder
        Returns:
        the created deployment
      • getResourceNames

        public java.util.Collection<java.lang.String> getResourceNames()
        Specified by:
        getResourceNames in interface DeploymentBuilder
        Returns:
        the names of the resources which were added to this builder.
      • isDuplicateFilterEnabled

        public boolean isDuplicateFilterEnabled()
      • isDeployChangedOnly

        public boolean isDeployChangedOnly()
      • getProcessDefinitionsActivationDate

        public java.util.Date getProcessDefinitionsActivationDate()
      • getNameFromDeployment

        public java.lang.String getNameFromDeployment()
      • getDeployments

        public java.util.Set<java.lang.String> getDeployments()
      • getDeploymentResourcesById

        public java.util.Map<java.lang.String,​java.util.Set<java.lang.String>> getDeploymentResourcesById()
      • getDeploymentResourcesByName

        public java.util.Map<java.lang.String,​java.util.Set<java.lang.String>> getDeploymentResourcesByName()