org.camunda.bpm.engine.impl.repository
Class ProcessApplicationDeploymentBuilderImpl

java.lang.Object
  extended by org.camunda.bpm.engine.impl.repository.DeploymentBuilderImpl
      extended by org.camunda.bpm.engine.impl.repository.ProcessApplicationDeploymentBuilderImpl
All Implemented Interfaces:
Serializable, DeploymentBuilder, ProcessApplicationDeploymentBuilder

public class ProcessApplicationDeploymentBuilderImpl
extends DeploymentBuilderImpl
implements ProcessApplicationDeploymentBuilder

Author:
Daniel Meyer
See Also:
Serialized Form

Field Summary
protected  boolean isResumePreviousVersions
           
protected  ProcessApplicationReference processApplicationReference
           
protected  String resumePreviousVersionsBy
           
 
Fields inherited from class org.camunda.bpm.engine.impl.repository.DeploymentBuilderImpl
deployChangedOnly, deployment, isDuplicateFilterEnabled, processDefinitionsActivationDate, repositoryService
 
Constructor Summary
ProcessApplicationDeploymentBuilderImpl(RepositoryServiceImpl repositoryService, ProcessApplicationReference reference)
           
 
Method Summary
 ProcessApplicationDeploymentBuilderImpl activateProcessDefinitionsOn(Date date)
          Sets the date on which the process definitions contained in this deployment will be activated.
 ProcessApplicationDeploymentBuilderImpl addClasspathResource(String resource)
           
 ProcessApplicationDeploymentBuilderImpl addInputStream(String resourceName, InputStream inputStream)
           
 ProcessApplicationDeploymentBuilderImpl addModelInstance(String resourceName, org.camunda.bpm.model.bpmn.BpmnModelInstance modelInstance)
           
 ProcessApplicationDeploymentBuilderImpl addString(String resourceName, String text)
           
 ProcessApplicationDeploymentBuilderImpl addZipInputStream(ZipInputStream zipInputStream)
           
 ProcessApplicationDeployment deploy()
          Deploys all provided sources to the process engine.
 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.
 ProcessApplicationReference getProcessApplicationReference()
           
 String getResumePreviousVersionsBy()
           
 boolean isResumePreviousVersions()
           
 ProcessApplicationDeploymentBuilderImpl name(String name)
          Gives the deployment the given name.
 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.
 
Methods inherited from class org.camunda.bpm.engine.impl.repository.DeploymentBuilderImpl
getDeployment, 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
getResourceNames
 

Field Detail

processApplicationReference

protected final ProcessApplicationReference processApplicationReference

isResumePreviousVersions

protected boolean isResumePreviousVersions

resumePreviousVersionsBy

protected String resumePreviousVersionsBy
Constructor Detail

ProcessApplicationDeploymentBuilderImpl

public ProcessApplicationDeploymentBuilderImpl(RepositoryServiceImpl repositoryService,
                                               ProcessApplicationReference reference)
Method Detail

resumePreviousVersions

public ProcessApplicationDeploymentBuilder resumePreviousVersions()
Description copied from interface: ProcessApplicationDeploymentBuilder

If this method is called, additional registrations will be created for previous versions of the deployment.

Specified by:
resumePreviousVersions in interface ProcessApplicationDeploymentBuilder

resumePreviousVersionsBy

public ProcessApplicationDeploymentBuilder resumePreviousVersionsBy(String resumePreviousVersionsBy)
Description copied from interface: ProcessApplicationDeploymentBuilder
This method defines on what additional registrations will be based. The value will only be recognized if ProcessApplicationDeploymentBuilder.resumePreviousVersions() is set.

Specified by:
resumePreviousVersionsBy in interface ProcessApplicationDeploymentBuilder
See Also:
ResumePreviousBy, ProcessApplicationDeploymentBuilder.resumePreviousVersions()

deploy

public ProcessApplicationDeployment deploy()
Description copied from interface: DeploymentBuilder
Deploys all provided sources to the process engine.

Specified by:
deploy in interface DeploymentBuilder
Specified by:
deploy in interface ProcessApplicationDeploymentBuilder
Overrides:
deploy in class DeploymentBuilderImpl

activateProcessDefinitionsOn

public ProcessApplicationDeploymentBuilderImpl activateProcessDefinitionsOn(Date date)
Description copied from interface: DeploymentBuilder
Sets 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:
activateProcessDefinitionsOn in interface DeploymentBuilder
Specified by:
activateProcessDefinitionsOn in interface ProcessApplicationDeploymentBuilder
Overrides:
activateProcessDefinitionsOn in class DeploymentBuilderImpl

addInputStream

public ProcessApplicationDeploymentBuilderImpl addInputStream(String resourceName,
                                                              InputStream inputStream)
Specified by:
addInputStream in interface DeploymentBuilder
Specified by:
addInputStream in interface ProcessApplicationDeploymentBuilder
Overrides:
addInputStream in class DeploymentBuilderImpl

addClasspathResource

public ProcessApplicationDeploymentBuilderImpl addClasspathResource(String resource)
Specified by:
addClasspathResource in interface DeploymentBuilder
Specified by:
addClasspathResource in interface ProcessApplicationDeploymentBuilder
Overrides:
addClasspathResource in class DeploymentBuilderImpl

addString

public ProcessApplicationDeploymentBuilderImpl addString(String resourceName,
                                                         String text)
Specified by:
addString in interface DeploymentBuilder
Specified by:
addString in interface ProcessApplicationDeploymentBuilder
Overrides:
addString in class DeploymentBuilderImpl

addModelInstance

public ProcessApplicationDeploymentBuilderImpl addModelInstance(String resourceName,
                                                                org.camunda.bpm.model.bpmn.BpmnModelInstance modelInstance)
Specified by:
addModelInstance in interface DeploymentBuilder
Specified by:
addModelInstance in interface ProcessApplicationDeploymentBuilder
Overrides:
addModelInstance in class DeploymentBuilderImpl

addZipInputStream

public ProcessApplicationDeploymentBuilderImpl addZipInputStream(ZipInputStream zipInputStream)
Specified by:
addZipInputStream in interface DeploymentBuilder
Specified by:
addZipInputStream in interface ProcessApplicationDeploymentBuilder
Overrides:
addZipInputStream in class DeploymentBuilderImpl

name

public ProcessApplicationDeploymentBuilderImpl name(String name)
Description copied from interface: DeploymentBuilder
Gives the deployment the given name.

Specified by:
name in interface DeploymentBuilder
Specified by:
name in interface ProcessApplicationDeploymentBuilder
Overrides:
name in class DeploymentBuilderImpl

enableDuplicateFiltering

public ProcessApplicationDeploymentBuilderImpl enableDuplicateFiltering()
Description copied from interface: 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)

Specified by:
enableDuplicateFiltering in interface DeploymentBuilder
Specified by:
enableDuplicateFiltering in interface ProcessApplicationDeploymentBuilder
Overrides:
enableDuplicateFiltering in class DeploymentBuilderImpl

enableDuplicateFiltering

public ProcessApplicationDeploymentBuilderImpl enableDuplicateFiltering(boolean deployChangedOnly)
Description copied from interface: DeploymentBuilder
Check the resources for duplicates in the set of previous deployments. If no resources have changed in this deployment, its contained resources are not deployed at all. For further configuration, use the parameter deployChangedOnly.

Specified by:
enableDuplicateFiltering in interface DeploymentBuilder
Specified by:
enableDuplicateFiltering in interface ProcessApplicationDeploymentBuilder
Overrides:
enableDuplicateFiltering in class DeploymentBuilderImpl
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.

isResumePreviousVersions

public boolean isResumePreviousVersions()

getProcessApplicationReference

public ProcessApplicationReference getProcessApplicationReference()

getResumePreviousVersionsBy

public String getResumePreviousVersionsBy()


Copyright © 2015 camunda services GmbH. All rights reserved.