public class DeploymentBuilderImpl extends Object implements DeploymentBuilder, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
deployChangedOnly |
protected DeploymentEntity |
deployment |
protected boolean |
isDuplicateFilterEnabled |
protected Date |
processDefinitionsActivationDate |
protected RepositoryServiceImpl |
repositoryService |
| Constructor and Description |
|---|
DeploymentBuilderImpl(RepositoryServiceImpl repositoryService) |
| Modifier and Type | Method and Description |
|---|---|
DeploymentBuilder |
activateProcessDefinitionsOn(Date date)
Sets the date on which the process definitions contained in this deployment
will be activated.
|
DeploymentBuilder |
addClasspathResource(String resource) |
DeploymentBuilder |
addInputStream(String resourceName,
InputStream inputStream) |
DeploymentBuilder |
addModelInstance(String resourceName,
BpmnModelInstance modelInstance) |
DeploymentBuilder |
addString(String resourceName,
String text) |
DeploymentBuilder |
addZipInputStream(ZipInputStream zipInputStream) |
Deployment |
deploy()
Deploys all provided sources to the process engine.
|
DeploymentBuilder |
enableDuplicateFiltering()
If set, this deployment will be compared to any previous deployment.
|
DeploymentBuilder |
enableDuplicateFiltering(boolean deployChangedOnly)
Check the resources for duplicates in the set of previous deployments.
|
DeploymentEntity |
getDeployment() |
Date |
getProcessDefinitionsActivationDate() |
Collection<String> |
getResourceNames() |
boolean |
isDeployChangedOnly() |
boolean |
isDuplicateFilterEnabled() |
DeploymentBuilder |
name(String name)
Gives the deployment the given name.
|
protected transient RepositoryServiceImpl repositoryService
protected DeploymentEntity deployment
protected boolean isDuplicateFilterEnabled
protected boolean deployChangedOnly
protected Date processDefinitionsActivationDate
public DeploymentBuilderImpl(RepositoryServiceImpl repositoryService)
public DeploymentBuilder addInputStream(String resourceName, InputStream inputStream)
addInputStream in interface DeploymentBuilderpublic DeploymentBuilder addClasspathResource(String resource)
addClasspathResource in interface DeploymentBuilderpublic DeploymentBuilder addString(String resourceName, String text)
addString in interface DeploymentBuilderpublic DeploymentBuilder addModelInstance(String resourceName, BpmnModelInstance modelInstance)
addModelInstance in interface DeploymentBuilderpublic DeploymentBuilder addZipInputStream(ZipInputStream zipInputStream)
addZipInputStream in interface DeploymentBuilderpublic DeploymentBuilder name(String name)
DeploymentBuildername in interface DeploymentBuilderpublic DeploymentBuilder enableDuplicateFiltering()
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)
enableDuplicateFiltering in interface DeploymentBuilderpublic DeploymentBuilder enableDuplicateFiltering(boolean deployChangedOnly)
DeploymentBuilderdeployChangedOnly.enableDuplicateFiltering in interface DeploymentBuilderdeployChangedOnly - 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.public DeploymentBuilder activateProcessDefinitionsOn(Date date)
DeploymentBuilderactivateProcessDefinitionsOn in interface DeploymentBuilderpublic Deployment deploy()
DeploymentBuilderdeploy in interface DeploymentBuilderpublic Collection<String> getResourceNames()
getResourceNames in interface DeploymentBuilderpublic DeploymentEntity getDeployment()
public boolean isDuplicateFilterEnabled()
public boolean isDeployChangedOnly()
public Date getProcessDefinitionsActivationDate()
Copyright © 2018. All rights reserved.