public class ProcessApplicationDeploymentBuilderImpl extends DeploymentBuilderImpl implements ProcessApplicationDeploymentBuilder
Modifier and Type | Field and Description |
---|---|
protected boolean |
isResumePreviousVersions |
protected ProcessApplicationReference |
processApplicationReference |
protected String |
resumePreviousVersionsBy |
deployChangedOnly, deployment, deploymentResourcesById, deploymentResourcesByName, deployments, isDuplicateFilterEnabled, nameFromDeployment, processDefinitionsActivationDate, repositoryService
Constructor and Description |
---|
ProcessApplicationDeploymentBuilderImpl(RepositoryServiceImpl repositoryService,
ProcessApplicationReference reference) |
Modifier and Type | Method and Description |
---|---|
ProcessApplicationDeploymentBuilderImpl |
activateProcessDefinitionsOn(Date date)
Sets the date on which the process definitions contained in this deployment
will be activated.
|
ProcessApplicationDeploymentBuilderImpl |
addClasspathResource(String resource) |
ProcessApplicationDeploymentBuilderImpl |
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.
|
ProcessApplicationDeploymentBuilderImpl |
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.
|
ProcessApplicationDeploymentBuilderImpl |
addDeploymentResources(String deploymentId)
All existing resources contained by the given deployment
will be added to the new deployment to re-deploy them.
|
ProcessApplicationDeploymentBuilderImpl |
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.
|
ProcessApplicationDeploymentBuilderImpl |
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.
|
ProcessApplicationDeploymentBuilderImpl |
addInputStream(String resourceName,
InputStream inputStream) |
ProcessApplicationDeploymentBuilderImpl |
addModelInstance(String resourceName,
BpmnModelInstance modelInstance)
Adds a BPMN model to the deployment.
|
ProcessApplicationDeploymentBuilderImpl |
addString(String resourceName,
String text) |
ProcessApplicationDeploymentBuilderImpl |
addZipInputStream(ZipInputStream zipInputStream) |
ProcessApplicationDeployment |
deploy()
Deploys all provided sources to the process engine and returns the created deployment.
|
ProcessApplicationDeploymentBuilderImpl |
enableDuplicateFiltering()
If set, this deployment will be compared to any previous deployment.
|
ProcessApplicationDeploymentBuilderImpl |
enableDuplicateFiltering(boolean deployChangedOnly)
Check the resources for duplicates in the set of previous deployments with
same deployment source.
|
ProcessApplicationReference |
getProcessApplicationReference() |
String |
getResumePreviousVersionsBy() |
boolean |
isResumePreviousVersions() |
ProcessApplicationDeploymentBuilderImpl |
name(String name)
Gives the deployment the given name.
|
ProcessApplicationDeploymentBuilderImpl |
nameFromDeployment(String deploymentId)
Sets the deployment id to retrieve the deployment name from it.
|
ProcessApplicationDeploymentBuilder |
resumePreviousVersions()
If this method is called, additional registrations will be created for
previous versions of the deployment.
|
ProcessApplicationDeploymentBuilder |
resumePreviousVersionsBy(String resumePreviousVersionsBy)
This method defines on what additional registrations will be based.
|
ProcessApplicationDeploymentBuilderImpl |
source(String source)
Sets the source of a deployment.
|
ProcessApplicationDeploymentBuilderImpl |
tenantId(String tenantId)
Sets the tenant id of a deployment.
|
addBytes, addModelInstance, addModelInstance, deployWithResult, getDeployment, getDeploymentResourcesById, getDeploymentResourcesByName, getDeployments, getNameFromDeployment, getProcessDefinitionsActivationDate, getResourceNames, isDeployChangedOnly, isDuplicateFilterEnabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addModelInstance, addModelInstance, deployWithResult, getResourceNames
protected final ProcessApplicationReference processApplicationReference
protected boolean isResumePreviousVersions
protected String resumePreviousVersionsBy
public ProcessApplicationDeploymentBuilderImpl(RepositoryServiceImpl repositoryService, ProcessApplicationReference reference)
public ProcessApplicationDeploymentBuilder resumePreviousVersions()
ProcessApplicationDeploymentBuilder
If this method is called, additional registrations will be created for previous versions of the deployment.
resumePreviousVersions
in interface ProcessApplicationDeploymentBuilder
public ProcessApplicationDeploymentBuilder resumePreviousVersionsBy(String resumePreviousVersionsBy)
ProcessApplicationDeploymentBuilder
ProcessApplicationDeploymentBuilder.resumePreviousVersions()
is set.
resumePreviousVersionsBy
in interface ProcessApplicationDeploymentBuilder
ResumePreviousBy
,
ProcessApplicationDeploymentBuilder.resumePreviousVersions()
public ProcessApplicationDeployment deploy()
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.
deploy
in interface DeploymentBuilder
deploy
in interface ProcessApplicationDeploymentBuilder
deploy
in class DeploymentBuilderImpl
public ProcessApplicationDeploymentBuilderImpl activateProcessDefinitionsOn(Date date)
DeploymentBuilder
activateProcessDefinitionsOn
in interface DeploymentBuilder
activateProcessDefinitionsOn
in interface ProcessApplicationDeploymentBuilder
activateProcessDefinitionsOn
in class DeploymentBuilderImpl
public ProcessApplicationDeploymentBuilderImpl addInputStream(String resourceName, InputStream inputStream)
addInputStream
in interface DeploymentBuilder
addInputStream
in interface ProcessApplicationDeploymentBuilder
addInputStream
in class DeploymentBuilderImpl
public ProcessApplicationDeploymentBuilderImpl addClasspathResource(String resource)
addClasspathResource
in interface DeploymentBuilder
addClasspathResource
in interface ProcessApplicationDeploymentBuilder
addClasspathResource
in class DeploymentBuilderImpl
public ProcessApplicationDeploymentBuilderImpl addString(String resourceName, String text)
addString
in interface DeploymentBuilder
addString
in interface ProcessApplicationDeploymentBuilder
addString
in class DeploymentBuilderImpl
public ProcessApplicationDeploymentBuilderImpl addModelInstance(String resourceName, BpmnModelInstance modelInstance)
DeploymentBuilder
addModelInstance
in interface DeploymentBuilder
addModelInstance
in interface ProcessApplicationDeploymentBuilder
addModelInstance
in class DeploymentBuilderImpl
resourceName
- resource name. See suffix requirements for resource names: DeploymentBuilder
.modelInstance
- model instancepublic ProcessApplicationDeploymentBuilderImpl addZipInputStream(ZipInputStream zipInputStream)
addZipInputStream
in interface DeploymentBuilder
addZipInputStream
in interface ProcessApplicationDeploymentBuilder
addZipInputStream
in class DeploymentBuilderImpl
public ProcessApplicationDeploymentBuilderImpl name(String name)
DeploymentBuilder
name
in interface DeploymentBuilder
name
in interface ProcessApplicationDeploymentBuilder
name
in class DeploymentBuilderImpl
public ProcessApplicationDeploymentBuilderImpl tenantId(String tenantId)
DeploymentBuilder
tenantId
in interface DeploymentBuilder
tenantId
in class DeploymentBuilderImpl
public ProcessApplicationDeploymentBuilderImpl nameFromDeployment(String deploymentId)
DeploymentBuilder
nameFromDeployment
in interface DeploymentBuilder
nameFromDeployment
in interface ProcessApplicationDeploymentBuilder
nameFromDeployment
in class DeploymentBuilderImpl
public ProcessApplicationDeploymentBuilderImpl source(String source)
DeploymentBuilder
Sets 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.
source
in interface DeploymentBuilder
source
in interface ProcessApplicationDeploymentBuilder
source
in class DeploymentBuilderImpl
public ProcessApplicationDeploymentBuilderImpl enableDuplicateFiltering()
DeploymentBuilder
If 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 DeploymentBuilder
enableDuplicateFiltering
in interface ProcessApplicationDeploymentBuilder
enableDuplicateFiltering
in class DeploymentBuilderImpl
public ProcessApplicationDeploymentBuilderImpl enableDuplicateFiltering(boolean deployChangedOnly)
DeploymentBuilder
deployChangedOnly
.enableDuplicateFiltering
in interface DeploymentBuilder
enableDuplicateFiltering
in interface ProcessApplicationDeploymentBuilder
enableDuplicateFiltering
in class DeploymentBuilderImpl
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.public ProcessApplicationDeploymentBuilderImpl addDeploymentResources(String deploymentId)
DeploymentBuilder
addDeploymentResources
in interface DeploymentBuilder
addDeploymentResources
in interface ProcessApplicationDeploymentBuilder
addDeploymentResources
in class DeploymentBuilderImpl
public ProcessApplicationDeploymentBuilderImpl addDeploymentResourceById(String deploymentId, String resourceId)
DeploymentBuilder
addDeploymentResourceById
in interface DeploymentBuilder
addDeploymentResourceById
in interface ProcessApplicationDeploymentBuilder
addDeploymentResourceById
in class DeploymentBuilderImpl
public ProcessApplicationDeploymentBuilderImpl addDeploymentResourcesById(String deploymentId, List<String> resourceIds)
DeploymentBuilder
addDeploymentResourcesById
in interface DeploymentBuilder
addDeploymentResourcesById
in interface ProcessApplicationDeploymentBuilder
addDeploymentResourcesById
in class DeploymentBuilderImpl
public ProcessApplicationDeploymentBuilderImpl addDeploymentResourceByName(String deploymentId, String resourceName)
DeploymentBuilder
addDeploymentResourceByName
in interface DeploymentBuilder
addDeploymentResourceByName
in interface ProcessApplicationDeploymentBuilder
addDeploymentResourceByName
in class DeploymentBuilderImpl
public ProcessApplicationDeploymentBuilderImpl addDeploymentResourcesByName(String deploymentId, List<String> resourceNames)
DeploymentBuilder
addDeploymentResourcesByName
in interface DeploymentBuilder
addDeploymentResourcesByName
in interface ProcessApplicationDeploymentBuilder
addDeploymentResourcesByName
in class DeploymentBuilderImpl
public boolean isResumePreviousVersions()
public ProcessApplicationReference getProcessApplicationReference()
public String getResumePreviousVersionsBy()
Copyright © 2022. All rights reserved.