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, isDuplicateFilterEnabledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddModelInstance, addModelInstance, deployWithResult, getResourceNamesprotected final ProcessApplicationReference processApplicationReference
protected boolean isResumePreviousVersions
protected String resumePreviousVersionsBy
public ProcessApplicationDeploymentBuilderImpl(RepositoryServiceImpl repositoryService, ProcessApplicationReference reference)
public ProcessApplicationDeploymentBuilder resumePreviousVersions()
ProcessApplicationDeploymentBuilderIf this method is called, additional registrations will be created for previous versions of the deployment.
resumePreviousVersions in interface ProcessApplicationDeploymentBuilderpublic ProcessApplicationDeploymentBuilder resumePreviousVersionsBy(String resumePreviousVersionsBy)
ProcessApplicationDeploymentBuilderProcessApplicationDeploymentBuilder.resumePreviousVersions() is set.
resumePreviousVersionsBy in interface ProcessApplicationDeploymentBuilderResumePreviousBy,
ProcessApplicationDeploymentBuilder.resumePreviousVersions()public ProcessApplicationDeployment deploy()
DeploymentBuilderDeploys 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 DeploymentBuilderdeploy in interface ProcessApplicationDeploymentBuilderdeploy in class DeploymentBuilderImplpublic ProcessApplicationDeploymentBuilderImpl activateProcessDefinitionsOn(Date date)
DeploymentBuilderactivateProcessDefinitionsOn in interface DeploymentBuilderactivateProcessDefinitionsOn in interface ProcessApplicationDeploymentBuilderactivateProcessDefinitionsOn in class DeploymentBuilderImplpublic ProcessApplicationDeploymentBuilderImpl addInputStream(String resourceName, InputStream inputStream)
addInputStream in interface DeploymentBuilderaddInputStream in interface ProcessApplicationDeploymentBuilderaddInputStream in class DeploymentBuilderImplpublic ProcessApplicationDeploymentBuilderImpl addClasspathResource(String resource)
addClasspathResource in interface DeploymentBuilderaddClasspathResource in interface ProcessApplicationDeploymentBuilderaddClasspathResource in class DeploymentBuilderImplpublic ProcessApplicationDeploymentBuilderImpl addString(String resourceName, String text)
addString in interface DeploymentBuilderaddString in interface ProcessApplicationDeploymentBuilderaddString in class DeploymentBuilderImplpublic ProcessApplicationDeploymentBuilderImpl addModelInstance(String resourceName, BpmnModelInstance modelInstance)
DeploymentBuilderaddModelInstance in interface DeploymentBuilderaddModelInstance in interface ProcessApplicationDeploymentBuilderaddModelInstance in class DeploymentBuilderImplresourceName - resource name. See suffix requirements for resource names: DeploymentBuilder.modelInstance - model instancepublic ProcessApplicationDeploymentBuilderImpl addZipInputStream(ZipInputStream zipInputStream)
addZipInputStream in interface DeploymentBuilderaddZipInputStream in interface ProcessApplicationDeploymentBuilderaddZipInputStream in class DeploymentBuilderImplpublic ProcessApplicationDeploymentBuilderImpl name(String name)
DeploymentBuildername in interface DeploymentBuildername in interface ProcessApplicationDeploymentBuildername in class DeploymentBuilderImplpublic ProcessApplicationDeploymentBuilderImpl tenantId(String tenantId)
DeploymentBuildertenantId in interface DeploymentBuildertenantId in class DeploymentBuilderImplpublic ProcessApplicationDeploymentBuilderImpl nameFromDeployment(String deploymentId)
DeploymentBuildernameFromDeployment in interface DeploymentBuildernameFromDeployment in interface ProcessApplicationDeploymentBuildernameFromDeployment in class DeploymentBuilderImplpublic ProcessApplicationDeploymentBuilderImpl source(String source)
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.
source in interface DeploymentBuildersource in interface ProcessApplicationDeploymentBuildersource in class DeploymentBuilderImplpublic ProcessApplicationDeploymentBuilderImpl 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 DeploymentBuilderenableDuplicateFiltering in interface ProcessApplicationDeploymentBuilderenableDuplicateFiltering in class DeploymentBuilderImplpublic ProcessApplicationDeploymentBuilderImpl enableDuplicateFiltering(boolean deployChangedOnly)
DeploymentBuilderdeployChangedOnly.enableDuplicateFiltering in interface DeploymentBuilderenableDuplicateFiltering in interface ProcessApplicationDeploymentBuilderenableDuplicateFiltering in class DeploymentBuilderImpldeployChangedOnly - 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)
DeploymentBuilderaddDeploymentResources in interface DeploymentBuilderaddDeploymentResources in interface ProcessApplicationDeploymentBuilderaddDeploymentResources in class DeploymentBuilderImplpublic ProcessApplicationDeploymentBuilderImpl addDeploymentResourceById(String deploymentId, String resourceId)
DeploymentBuilderaddDeploymentResourceById in interface DeploymentBuilderaddDeploymentResourceById in interface ProcessApplicationDeploymentBuilderaddDeploymentResourceById in class DeploymentBuilderImplpublic ProcessApplicationDeploymentBuilderImpl addDeploymentResourcesById(String deploymentId, List<String> resourceIds)
DeploymentBuilderaddDeploymentResourcesById in interface DeploymentBuilderaddDeploymentResourcesById in interface ProcessApplicationDeploymentBuilderaddDeploymentResourcesById in class DeploymentBuilderImplpublic ProcessApplicationDeploymentBuilderImpl addDeploymentResourceByName(String deploymentId, String resourceName)
DeploymentBuilderaddDeploymentResourceByName in interface DeploymentBuilderaddDeploymentResourceByName in interface ProcessApplicationDeploymentBuilderaddDeploymentResourceByName in class DeploymentBuilderImplpublic ProcessApplicationDeploymentBuilderImpl addDeploymentResourcesByName(String deploymentId, List<String> resourceNames)
DeploymentBuilderaddDeploymentResourcesByName in interface DeploymentBuilderaddDeploymentResourcesByName in interface ProcessApplicationDeploymentBuilderaddDeploymentResourcesByName in class DeploymentBuilderImplpublic boolean isResumePreviousVersions()
public ProcessApplicationReference getProcessApplicationReference()
public String getResumePreviousVersionsBy()
Copyright © 2021. All rights reserved.