Class DeploymentBuilderImpl
- All Implemented Interfaces:
- Serializable,- DeploymentBuilder
- Direct Known Subclasses:
- ProcessApplicationDeploymentBuilderImpl
- Author:
- Tom Baeyens, Joram Barrez
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected booleanprotected DeploymentEntityprotected booleanprotected Stringprotected Dateprotected RepositoryServiceImpl
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionSets the date on which the process definitions contained in this deployment will be activated.protected DeploymentBuilderaddClasspathResource(String resource) addDeploymentResourceById(String deploymentId, String resourceId) A given resource specified by id and deployment id will be added to the new deployment to re-deploy the given resource.addDeploymentResourceByName(String deploymentId, String resourceName) A given resource specified by name and deployment id will be added to the new deployment to re-deploy the given resource.addDeploymentResources(String deploymentId) All existing resources contained by the given deployment will be added to the new deployment to re-deploy them.addDeploymentResourcesById(String deploymentId, List<String> resourceIds) All given resources specified by id and deployment id will be added to the new deployment to re-deploy the given resource.addDeploymentResourcesByName(String deploymentId, List<String> resourceNames) All given resources specified by name and deployment id will be added to the new deployment to re-deploy the given resource.addInputStream(String resourceName, InputStream inputStream) addModelInstance(String resourceName, BpmnModelInstance modelInstance) Adds a BPMN model to the deployment.addModelInstance(String resourceName, CmmnModelInstance modelInstance) Adds a CMMN model to the deployment.addModelInstance(String resourceName, DmnModelInstance modelInstance) Adds a DMN model to the deployment.addZipInputStream(ZipInputStream zipInputStream) deploy()Deploys all provided sources to the process engine and returns the created deployment.Deploys all provided sources to the process engine and returns the created deployment with the deployed definitions.If set, this deployment will be compared to any previous deployment.enableDuplicateFiltering(boolean deployChangedOnly) Check the resources for duplicates in the set of previous deployments with same deployment source.booleanbooleanGives the deployment the given name.nameFromDeployment(String deploymentId) Sets the deployment id to retrieve the deployment name from it.Sets the source of a deployment.Sets the tenant id of a deployment.
- 
Field Details- 
repositoryService
- 
deployment
- 
isDuplicateFilterEnabledprotected boolean isDuplicateFilterEnabled
- 
deployChangedOnlyprotected boolean deployChangedOnly
- 
processDefinitionsActivationDate
- 
nameFromDeployment
- 
deployments
- 
deploymentResourcesById
- 
deploymentResourcesByName
 
- 
- 
Constructor Details- 
DeploymentBuilderImpl
 
- 
- 
Method Details- 
addInputStream- Specified by:
- addInputStreamin interface- DeploymentBuilder
 
- 
addClasspathResource- Specified by:
- addClasspathResourcein interface- DeploymentBuilder
 
- 
addString- Specified by:
- addStringin interface- DeploymentBuilder
 
- 
addModelInstanceDescription copied from interface:DeploymentBuilderAdds a CMMN model to the deployment.- Specified by:
- addModelInstancein interface- DeploymentBuilder
- Parameters:
- resourceName- resource name. See suffix requirements for resource names: .
- modelInstance- model instance
- Returns:
 
- 
addModelInstanceDescription copied from interface:DeploymentBuilderAdds a BPMN model to the deployment.- Specified by:
- addModelInstancein interface- DeploymentBuilder
- Parameters:
- resourceName- resource name. See suffix requirements for resource names: .
- modelInstance- model instance
- Returns:
 
- 
addModelInstanceDescription copied from interface:DeploymentBuilderAdds a DMN model to the deployment.- Specified by:
- addModelInstancein interface- DeploymentBuilder
- Parameters:
- resourceName- resource name. See suffix requirements for resource names: .
- modelInstance- model instance
- Returns:
 
- 
addBytes
- 
addZipInputStream- Specified by:
- addZipInputStreamin interface- DeploymentBuilder
 
- 
addDeploymentResourcesDescription copied from interface:DeploymentBuilderAll existing resources contained by the given deployment will be added to the new deployment to re-deploy them.- Specified by:
- addDeploymentResourcesin interface- DeploymentBuilder
 
- 
addDeploymentResourceByIdDescription copied from interface:DeploymentBuilderA given resource specified by id and deployment id will be added to the new deployment to re-deploy the given resource.- Specified by:
- addDeploymentResourceByIdin interface- DeploymentBuilder
 
- 
addDeploymentResourcesByIdDescription copied from interface:DeploymentBuilderAll given resources specified by id and deployment id will be added to the new deployment to re-deploy the given resource.- Specified by:
- addDeploymentResourcesByIdin interface- DeploymentBuilder
 
- 
addDeploymentResourceByNameDescription copied from interface:DeploymentBuilderA given resource specified by name and deployment id will be added to the new deployment to re-deploy the given resource.- Specified by:
- addDeploymentResourceByNamein interface- DeploymentBuilder
 
- 
addDeploymentResourcesByNamepublic DeploymentBuilder addDeploymentResourcesByName(String deploymentId, List<String> resourceNames) Description copied from interface:DeploymentBuilderAll given resources specified by name and deployment id will be added to the new deployment to re-deploy the given resource.- Specified by:
- addDeploymentResourcesByNamein interface- DeploymentBuilder
 
- 
nameDescription copied from interface:DeploymentBuilderGives the deployment the given name.- Specified by:
- namein interface- DeploymentBuilder
 
- 
nameFromDeploymentDescription copied from interface:DeploymentBuilderSets the deployment id to retrieve the deployment name from it.- Specified by:
- nameFromDeploymentin interface- DeploymentBuilder
 
- 
enableDuplicateFilteringDescription copied from interface:DeploymentBuilderIf set, this deployment will be compared to any previous deployment. This means that every (non-generated) resource will be compared with the provided resources of this deployment. If any resource of this deployment is different to the existing resources, all resources are re-deployed. Deprecated: use DeploymentBuilder.enableDuplicateFiltering(boolean)- Specified by:
- enableDuplicateFilteringin interface- DeploymentBuilder
 
- 
enableDuplicateFilteringDescription copied from interface:DeploymentBuilderCheck 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 parameterdeployChangedOnly.- Specified by:
- enableDuplicateFilteringin 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.
 
- 
activateProcessDefinitionsOnDescription copied from interface:DeploymentBuilderSets 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:
- activateProcessDefinitionsOnin interface- DeploymentBuilder
 
- 
sourceDescription copied from interface:DeploymentBuilderSets the source of a deployment. Furthermore if duplicate check of deployment resources is enabled (by calling DeploymentBuilder.enableDuplicateFiltering(boolean)) then only previous deployments with the same given source are considered to perform the duplicate check.- Specified by:
- sourcein interface- DeploymentBuilder
 
- 
tenantIdDescription copied from interface:DeploymentBuilderSets the tenant id of a deployment.- Specified by:
- tenantIdin interface- DeploymentBuilder
 
- 
deployDescription copied from interface:DeploymentBuilderDeploys all provided sources to the process engine and returns the created deployment. The returned Deploymentinstance has no information about the definitions, which are deployed with that deployment. To access this information you can use theDeploymentBuilder.deployWithResult()method. This method will return an instance ofDeploymentWithDefinitions, which contains the information about the successful deployed definitions.- Specified by:
- deployin interface- DeploymentBuilder
- Returns:
- the created deployment
 
- 
deployWithResultDescription copied from interface:DeploymentBuilderDeploys all provided sources to the process engine and returns the created deployment with the deployed definitions.- Specified by:
- deployWithResultin interface- DeploymentBuilder
- Returns:
- the created deployment, contains the deployed definitions
 
- 
getResourceNames- Specified by:
- getResourceNamesin interface- DeploymentBuilder
- Returns:
- the names of the resources which were added to this builder.
 
- 
getDeployment
- 
isDuplicateFilterEnabledpublic boolean isDuplicateFilterEnabled()
- 
isDeployChangedOnlypublic boolean isDeployChangedOnly()
- 
getProcessDefinitionsActivationDate
- 
getNameFromDeployment
- 
getDeployments
- 
getDeploymentResourcesById
- 
getDeploymentResourcesByName
 
-