Class DeploymentBuilderImpl
- java.lang.Object
-
- org.activiti.engine.impl.repository.DeploymentBuilderImpl
-
- All Implemented Interfaces:
java.io.Serializable,DeploymentBuilder
public class DeploymentBuilderImpl extends java.lang.Object implements DeploymentBuilder, java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringDEFAULT_ENCODINGprotected DeploymentEntitydeploymentprotected java.util.Map<java.lang.String,java.lang.Object>deploymentPropertiesprotected booleanisBpmn20XsdValidationEnabledprotected booleanisDuplicateFilterEnabledprotected booleanisProcessValidationEnabledprotected java.util.DateprocessDefinitionsActivationDateprotected RepositoryServiceImplrepositoryServiceprotected ResourceEntityManagerresourceEntityManager
-
Constructor Summary
Constructors Constructor Description DeploymentBuilderImpl(RepositoryServiceImpl repositoryService)DeploymentBuilderImpl(RepositoryServiceImpl repositoryService, DeploymentEntity deployment, ResourceEntityManager resourceEntityManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeploymentBuilderactivateProcessDefinitionsOn(java.util.Date date)Sets the date on which the process definitions contained in this deployment will be activated.DeploymentBuilderaddBpmnModel(java.lang.String resourceName, org.activiti.bpmn.model.BpmnModel bpmnModel)DeploymentBuilderaddBytes(java.lang.String resourceName, byte[] bytes)DeploymentBuilderaddClasspathResource(java.lang.String resource)DeploymentBuilderaddInputStream(java.lang.String resourceName, java.io.InputStream inputStream)DeploymentBuilderaddInputStream(java.lang.String resourceName, org.springframework.core.io.Resource resource)DeploymentBuilderaddString(java.lang.String resourceName, java.lang.String text)DeploymentBuilderaddZipInputStream(java.util.zip.ZipInputStream zipInputStream)DeploymentBuildercategory(java.lang.String category)Gives the deployment the given category.Deploymentdeploy()Deploys all provided sources to the Activiti engine.DeploymentBuilderdeploymentProperty(java.lang.String propertyKey, java.lang.Object propertyValue)Allows to add a property to thisDeploymentBuilderthat influences the deployment.DeploymentBuilderdisableBpmnValidation()If called, no validation that the process definition is executable on the engine will be done against the process definition.DeploymentBuilderdisableSchemaValidation()If called, no XML schema validation against the BPMN 2.0 XSD.DeploymentBuilderenableDuplicateFiltering()If set, this deployment will be compared to any previous deployment.DeploymentEntitygetDeployment()java.util.Map<java.lang.String,java.lang.Object>getDeploymentProperties()java.util.DategetProcessDefinitionsActivationDate()org.activiti.core.common.project.model.ProjectManifestgetProjectManifest()booleanhasProjectManifestSet()booleanisBpmn20XsdValidationEnabled()booleanisDuplicateFilterEnabled()booleanisProcessValidationEnabled()DeploymentBuilderkey(java.lang.String key)Gives the deployment the given key.DeploymentBuildername(java.lang.String name)Gives the deployment the given name.DeploymentBuildersetProjectManifest(org.activiti.core.common.project.model.ProjectManifest projectManifest)DeploymentBuildertenantId(java.lang.String tenantId)Gives the deployment the given tenant id.
-
-
-
Field Detail
-
DEFAULT_ENCODING
protected static final java.lang.String DEFAULT_ENCODING
- See Also:
- Constant Field Values
-
repositoryService
protected transient RepositoryServiceImpl repositoryService
-
resourceEntityManager
protected transient ResourceEntityManager resourceEntityManager
-
deployment
protected DeploymentEntity deployment
-
isBpmn20XsdValidationEnabled
protected boolean isBpmn20XsdValidationEnabled
-
isProcessValidationEnabled
protected boolean isProcessValidationEnabled
-
isDuplicateFilterEnabled
protected boolean isDuplicateFilterEnabled
-
processDefinitionsActivationDate
protected java.util.Date processDefinitionsActivationDate
-
deploymentProperties
protected java.util.Map<java.lang.String,java.lang.Object> deploymentProperties
-
-
Constructor Detail
-
DeploymentBuilderImpl
public DeploymentBuilderImpl(RepositoryServiceImpl repositoryService)
-
DeploymentBuilderImpl
public DeploymentBuilderImpl(RepositoryServiceImpl repositoryService, DeploymentEntity deployment, ResourceEntityManager resourceEntityManager)
-
-
Method Detail
-
addInputStream
public DeploymentBuilder addInputStream(java.lang.String resourceName, java.io.InputStream inputStream)
- Specified by:
addInputStreamin interfaceDeploymentBuilder
-
setProjectManifest
public DeploymentBuilder setProjectManifest(org.activiti.core.common.project.model.ProjectManifest projectManifest)
- Specified by:
setProjectManifestin interfaceDeploymentBuilder
-
getProjectManifest
public org.activiti.core.common.project.model.ProjectManifest getProjectManifest()
-
hasProjectManifestSet
public boolean hasProjectManifestSet()
-
addInputStream
public DeploymentBuilder addInputStream(java.lang.String resourceName, org.springframework.core.io.Resource resource)
- Specified by:
addInputStreamin interfaceDeploymentBuilder
-
addClasspathResource
public DeploymentBuilder addClasspathResource(java.lang.String resource)
- Specified by:
addClasspathResourcein interfaceDeploymentBuilder
-
addString
public DeploymentBuilder addString(java.lang.String resourceName, java.lang.String text)
- Specified by:
addStringin interfaceDeploymentBuilder
-
addBytes
public DeploymentBuilder addBytes(java.lang.String resourceName, byte[] bytes)
- Specified by:
addBytesin interfaceDeploymentBuilder
-
addZipInputStream
public DeploymentBuilder addZipInputStream(java.util.zip.ZipInputStream zipInputStream)
- Specified by:
addZipInputStreamin interfaceDeploymentBuilder
-
addBpmnModel
public DeploymentBuilder addBpmnModel(java.lang.String resourceName, org.activiti.bpmn.model.BpmnModel bpmnModel)
- Specified by:
addBpmnModelin interfaceDeploymentBuilder
-
name
public DeploymentBuilder name(java.lang.String name)
Description copied from interface:DeploymentBuilderGives the deployment the given name.- Specified by:
namein interfaceDeploymentBuilder
-
category
public DeploymentBuilder category(java.lang.String category)
Description copied from interface:DeploymentBuilderGives the deployment the given category.- Specified by:
categoryin interfaceDeploymentBuilder
-
key
public DeploymentBuilder key(java.lang.String key)
Description copied from interface:DeploymentBuilderGives the deployment the given key.- Specified by:
keyin interfaceDeploymentBuilder
-
disableBpmnValidation
public DeploymentBuilder disableBpmnValidation()
Description copied from interface:DeploymentBuilderIf called, no validation that the process definition is executable on the engine will be done against the process definition. Not recommended in general.- Specified by:
disableBpmnValidationin interfaceDeploymentBuilder
-
disableSchemaValidation
public DeploymentBuilder disableSchemaValidation()
Description copied from interface:DeploymentBuilderIf called, no XML schema validation against the BPMN 2.0 XSD. Not recommended in general.- Specified by:
disableSchemaValidationin interfaceDeploymentBuilder
-
tenantId
public DeploymentBuilder tenantId(java.lang.String tenantId)
Description copied from interface:DeploymentBuilderGives the deployment the given tenant id.- Specified by:
tenantIdin interfaceDeploymentBuilder
-
enableDuplicateFiltering
public DeploymentBuilder 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.- Specified by:
enableDuplicateFilteringin interfaceDeploymentBuilder
-
activateProcessDefinitionsOn
public DeploymentBuilder 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
-
deploymentProperty
public DeploymentBuilder deploymentProperty(java.lang.String propertyKey, java.lang.Object propertyValue)
Description copied from interface:DeploymentBuilderAllows to add a property to thisDeploymentBuilderthat influences the deployment.- Specified by:
deploymentPropertyin interfaceDeploymentBuilder
-
deploy
public Deployment deploy()
Description copied from interface:DeploymentBuilderDeploys all provided sources to the Activiti engine.- Specified by:
deployin interfaceDeploymentBuilder
-
getDeployment
public DeploymentEntity getDeployment()
-
isProcessValidationEnabled
public boolean isProcessValidationEnabled()
-
isBpmn20XsdValidationEnabled
public boolean isBpmn20XsdValidationEnabled()
-
isDuplicateFilterEnabled
public boolean isDuplicateFilterEnabled()
-
getProcessDefinitionsActivationDate
public java.util.Date getProcessDefinitionsActivationDate()
-
getDeploymentProperties
public java.util.Map<java.lang.String,java.lang.Object> getDeploymentProperties()
-
-