Class ProcessApplicationDeploymentBuilderImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.repository.DeploymentBuilderImpl
-
- org.camunda.bpm.engine.impl.repository.ProcessApplicationDeploymentBuilderImpl
-
- All Implemented Interfaces:
java.io.Serializable,DeploymentBuilder,ProcessApplicationDeploymentBuilder
public class ProcessApplicationDeploymentBuilderImpl extends DeploymentBuilderImpl implements ProcessApplicationDeploymentBuilder
- Author:
- Daniel Meyer
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanisResumePreviousVersionsprotected ProcessApplicationReferenceprocessApplicationReferenceprotected java.lang.StringresumePreviousVersionsBy-
Fields inherited from class org.camunda.bpm.engine.impl.repository.DeploymentBuilderImpl
deployChangedOnly, deployment, deploymentResourcesById, deploymentResourcesByName, deployments, isDuplicateFilterEnabled, nameFromDeployment, processDefinitionsActivationDate, repositoryService
-
-
Constructor Summary
Constructors Constructor Description ProcessApplicationDeploymentBuilderImpl(RepositoryServiceImpl repositoryService, ProcessApplicationReference reference)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProcessApplicationDeploymentBuilderImplactivateProcessDefinitionsOn(java.util.Date date)Sets the date on which the process definitions contained in this deployment will be activated.ProcessApplicationDeploymentBuilderImpladdClasspathResource(java.lang.String resource)ProcessApplicationDeploymentBuilderImpladdDeploymentResourceById(java.lang.String deploymentId, java.lang.String resourceId)A given resource specified by id and deployment id will be added to the new deployment to re-deploy the given resource.ProcessApplicationDeploymentBuilderImpladdDeploymentResourceByName(java.lang.String deploymentId, java.lang.String resourceName)A given resource specified by name and deployment id will be added to the new deployment to re-deploy the given resource.ProcessApplicationDeploymentBuilderImpladdDeploymentResources(java.lang.String deploymentId)All existing resources contained by the given deployment will be added to the new deployment to re-deploy them.ProcessApplicationDeploymentBuilderImpladdDeploymentResourcesById(java.lang.String deploymentId, java.util.List<java.lang.String> resourceIds)All given resources specified by id and deployment id will be added to the new deployment to re-deploy the given resource.ProcessApplicationDeploymentBuilderImpladdDeploymentResourcesByName(java.lang.String deploymentId, java.util.List<java.lang.String> resourceNames)All given resources specified by name and deployment id will be added to the new deployment to re-deploy the given resource.ProcessApplicationDeploymentBuilderImpladdInputStream(java.lang.String resourceName, java.io.InputStream inputStream)ProcessApplicationDeploymentBuilderImpladdModelInstance(java.lang.String resourceName, BpmnModelInstance modelInstance)Adds a BPMN model to the deployment.ProcessApplicationDeploymentBuilderImpladdString(java.lang.String resourceName, java.lang.String text)ProcessApplicationDeploymentBuilderImpladdZipInputStream(java.util.zip.ZipInputStream zipInputStream)ProcessApplicationDeploymentdeploy()Deploys all provided sources to the process engine and returns the created deployment.ProcessApplicationDeploymentBuilderImplenableDuplicateFiltering()If set, this deployment will be compared to any previous deployment.ProcessApplicationDeploymentBuilderImplenableDuplicateFiltering(boolean deployChangedOnly)Check the resources for duplicates in the set of previous deployments with same deployment source.ProcessApplicationReferencegetProcessApplicationReference()java.lang.StringgetResumePreviousVersionsBy()booleanisResumePreviousVersions()ProcessApplicationDeploymentBuilderImplname(java.lang.String name)Gives the deployment the given name.ProcessApplicationDeploymentBuilderImplnameFromDeployment(java.lang.String deploymentId)Sets the deployment id to retrieve the deployment name from it.ProcessApplicationDeploymentBuilderresumePreviousVersions()If this method is called, additional registrations will be created for previous versions of the deployment.ProcessApplicationDeploymentBuilderresumePreviousVersionsBy(java.lang.String resumePreviousVersionsBy)This method defines on what additional registrations will be based.ProcessApplicationDeploymentBuilderImplsource(java.lang.String source)Sets the source of a deployment.ProcessApplicationDeploymentBuilderImpltenantId(java.lang.String tenantId)Sets the tenant id of a deployment.-
Methods inherited from class org.camunda.bpm.engine.impl.repository.DeploymentBuilderImpl
addBytes, addModelInstance, addModelInstance, deployWithResult, getDeployment, getDeploymentResourcesById, getDeploymentResourcesByName, getDeployments, getNameFromDeployment, getProcessDefinitionsActivationDate, getResourceNames, isDeployChangedOnly, isDuplicateFilterEnabled
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.engine.repository.DeploymentBuilder
addModelInstance, addModelInstance, deployWithResult, getResourceNames
-
-
-
-
Field Detail
-
processApplicationReference
protected final ProcessApplicationReference processApplicationReference
-
isResumePreviousVersions
protected boolean isResumePreviousVersions
-
resumePreviousVersionsBy
protected java.lang.String resumePreviousVersionsBy
-
-
Constructor Detail
-
ProcessApplicationDeploymentBuilderImpl
public ProcessApplicationDeploymentBuilderImpl(RepositoryServiceImpl repositoryService, ProcessApplicationReference reference)
-
-
Method Detail
-
resumePreviousVersions
public ProcessApplicationDeploymentBuilder resumePreviousVersions()
Description copied from interface:ProcessApplicationDeploymentBuilderIf this method is called, additional registrations will be created for previous versions of the deployment.
- Specified by:
resumePreviousVersionsin interfaceProcessApplicationDeploymentBuilder
-
resumePreviousVersionsBy
public ProcessApplicationDeploymentBuilder resumePreviousVersionsBy(java.lang.String resumePreviousVersionsBy)
Description copied from interface:ProcessApplicationDeploymentBuilderThis method defines on what additional registrations will be based. The value will only be recognized ifProcessApplicationDeploymentBuilder.resumePreviousVersions()is set.- Specified by:
resumePreviousVersionsByin interfaceProcessApplicationDeploymentBuilder- See Also:
ResumePreviousBy,ProcessApplicationDeploymentBuilder.resumePreviousVersions()
-
deploy
public ProcessApplicationDeployment deploy()
Description 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 interfaceDeploymentBuilder- Specified by:
deployin interfaceProcessApplicationDeploymentBuilder- Overrides:
deployin classDeploymentBuilderImpl- Returns:
- the created deployment
-
activateProcessDefinitionsOn
public ProcessApplicationDeploymentBuilderImpl activateProcessDefinitionsOn(java.util.Date date)
Description 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 interfaceDeploymentBuilder- Specified by:
activateProcessDefinitionsOnin interfaceProcessApplicationDeploymentBuilder- Overrides:
activateProcessDefinitionsOnin classDeploymentBuilderImpl
-
addInputStream
public ProcessApplicationDeploymentBuilderImpl addInputStream(java.lang.String resourceName, java.io.InputStream inputStream)
- Specified by:
addInputStreamin interfaceDeploymentBuilder- Specified by:
addInputStreamin interfaceProcessApplicationDeploymentBuilder- Overrides:
addInputStreamin classDeploymentBuilderImpl
-
addClasspathResource
public ProcessApplicationDeploymentBuilderImpl addClasspathResource(java.lang.String resource)
- Specified by:
addClasspathResourcein interfaceDeploymentBuilder- Specified by:
addClasspathResourcein interfaceProcessApplicationDeploymentBuilder- Overrides:
addClasspathResourcein classDeploymentBuilderImpl
-
addString
public ProcessApplicationDeploymentBuilderImpl addString(java.lang.String resourceName, java.lang.String text)
- Specified by:
addStringin interfaceDeploymentBuilder- Specified by:
addStringin interfaceProcessApplicationDeploymentBuilder- Overrides:
addStringin classDeploymentBuilderImpl
-
addModelInstance
public ProcessApplicationDeploymentBuilderImpl addModelInstance(java.lang.String resourceName, BpmnModelInstance modelInstance)
Description copied from interface:DeploymentBuilderAdds a BPMN model to the deployment.- Specified by:
addModelInstancein interfaceDeploymentBuilder- Specified by:
addModelInstancein interfaceProcessApplicationDeploymentBuilder- Overrides:
addModelInstancein classDeploymentBuilderImpl- Parameters:
resourceName- resource name. See suffix requirements for resource names: {@see DeploymentBuilder}.modelInstance- model instance- Returns:
-
addZipInputStream
public ProcessApplicationDeploymentBuilderImpl addZipInputStream(java.util.zip.ZipInputStream zipInputStream)
- Specified by:
addZipInputStreamin interfaceDeploymentBuilder- Specified by:
addZipInputStreamin interfaceProcessApplicationDeploymentBuilder- Overrides:
addZipInputStreamin classDeploymentBuilderImpl
-
name
public ProcessApplicationDeploymentBuilderImpl name(java.lang.String name)
Description copied from interface:DeploymentBuilderGives the deployment the given name.- Specified by:
namein interfaceDeploymentBuilder- Specified by:
namein interfaceProcessApplicationDeploymentBuilder- Overrides:
namein classDeploymentBuilderImpl
-
tenantId
public ProcessApplicationDeploymentBuilderImpl tenantId(java.lang.String tenantId)
Description copied from interface:DeploymentBuilderSets the tenant id of a deployment.- Specified by:
tenantIdin interfaceDeploymentBuilder- Overrides:
tenantIdin classDeploymentBuilderImpl
-
nameFromDeployment
public ProcessApplicationDeploymentBuilderImpl nameFromDeployment(java.lang.String deploymentId)
Description copied from interface:DeploymentBuilderSets the deployment id to retrieve the deployment name from it.- Specified by:
nameFromDeploymentin interfaceDeploymentBuilder- Specified by:
nameFromDeploymentin interfaceProcessApplicationDeploymentBuilder- Overrides:
nameFromDeploymentin classDeploymentBuilderImpl
-
source
public ProcessApplicationDeploymentBuilderImpl source(java.lang.String source)
Description 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 interfaceDeploymentBuilder- Specified by:
sourcein interfaceProcessApplicationDeploymentBuilder- Overrides:
sourcein classDeploymentBuilderImpl
-
enableDuplicateFiltering
public ProcessApplicationDeploymentBuilderImpl enableDuplicateFiltering()
Description 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 interfaceDeploymentBuilder- Specified by:
enableDuplicateFilteringin interfaceProcessApplicationDeploymentBuilder- Overrides:
enableDuplicateFilteringin classDeploymentBuilderImpl
-
enableDuplicateFiltering
public ProcessApplicationDeploymentBuilderImpl enableDuplicateFiltering(boolean deployChangedOnly)
Description 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 interfaceDeploymentBuilder- Specified by:
enableDuplicateFilteringin interfaceProcessApplicationDeploymentBuilder- Overrides:
enableDuplicateFilteringin classDeploymentBuilderImpl- 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.
-
addDeploymentResources
public ProcessApplicationDeploymentBuilderImpl addDeploymentResources(java.lang.String deploymentId)
Description 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 interfaceDeploymentBuilder- Specified by:
addDeploymentResourcesin interfaceProcessApplicationDeploymentBuilder- Overrides:
addDeploymentResourcesin classDeploymentBuilderImpl
-
addDeploymentResourceById
public ProcessApplicationDeploymentBuilderImpl addDeploymentResourceById(java.lang.String deploymentId, java.lang.String resourceId)
Description 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 interfaceDeploymentBuilder- Specified by:
addDeploymentResourceByIdin interfaceProcessApplicationDeploymentBuilder- Overrides:
addDeploymentResourceByIdin classDeploymentBuilderImpl
-
addDeploymentResourcesById
public ProcessApplicationDeploymentBuilderImpl addDeploymentResourcesById(java.lang.String deploymentId, java.util.List<java.lang.String> resourceIds)
Description 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 interfaceDeploymentBuilder- Specified by:
addDeploymentResourcesByIdin interfaceProcessApplicationDeploymentBuilder- Overrides:
addDeploymentResourcesByIdin classDeploymentBuilderImpl
-
addDeploymentResourceByName
public ProcessApplicationDeploymentBuilderImpl addDeploymentResourceByName(java.lang.String deploymentId, java.lang.String resourceName)
Description 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 interfaceDeploymentBuilder- Specified by:
addDeploymentResourceByNamein interfaceProcessApplicationDeploymentBuilder- Overrides:
addDeploymentResourceByNamein classDeploymentBuilderImpl
-
addDeploymentResourcesByName
public ProcessApplicationDeploymentBuilderImpl addDeploymentResourcesByName(java.lang.String deploymentId, java.util.List<java.lang.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 interfaceDeploymentBuilder- Specified by:
addDeploymentResourcesByNamein interfaceProcessApplicationDeploymentBuilder- Overrides:
addDeploymentResourcesByNamein classDeploymentBuilderImpl
-
isResumePreviousVersions
public boolean isResumePreviousVersions()
-
getProcessApplicationReference
public ProcessApplicationReference getProcessApplicationReference()
-
getResumePreviousVersionsBy
public java.lang.String getResumePreviousVersionsBy()
-
-