Class DeploymentBuilderImpl
java.lang.Object
org.activiti.engine.impl.repository.DeploymentBuilderImpl
- All Implemented Interfaces:
Serializable,DeploymentBuilder
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected DeploymentEntityprotected booleanprotected booleanprotected booleanprotected Dateprotected RepositoryServiceImplprotected ResourceEntityManager -
Constructor Summary
ConstructorsConstructorDescriptionDeploymentBuilderImpl(RepositoryServiceImpl repositoryService) DeploymentBuilderImpl(RepositoryServiceImpl repositoryService, DeploymentEntity deployment, ResourceEntityManager resourceEntityManager) -
Method Summary
Modifier and TypeMethodDescriptionSets the date on which the process definitions contained in this deployment will be activated.addBpmnModel(String resourceName, BpmnModel bpmnModel) addClasspathResource(String resource) addInputStream(String resourceName, InputStream inputStream) addInputStream(String resourceName, org.springframework.core.io.Resource resource) addZipInputStream(ZipInputStream zipInputStream) Gives the deployment the given category.deploy()Deploys all provided sources to the Activiti engine.deploymentProperty(String propertyKey, Object propertyValue) Allows to add a property to thisDeploymentBuilderthat influences the deployment.If called, no validation that the process definition is executable on the engine will be done against the process definition.If called, no XML schema validation against the BPMN 2.0 XSD.If set, this deployment will be compared to any previous deployment.booleanbooleanbooleanbooleanbooleanGives the deployment the given key.Gives the deployment the given name.setEnforcedAppVersion(Integer enforcedAppVersion) setProjectManifest(ProjectManifest projectManifest) Gives the deployment the given tenant id.
-
Field Details
-
DEFAULT_ENCODING
- See Also:
-
repositoryService
-
resourceEntityManager
-
deployment
-
isBpmn20XsdValidationEnabled
protected boolean isBpmn20XsdValidationEnabled -
isProcessValidationEnabled
protected boolean isProcessValidationEnabled -
isDuplicateFilterEnabled
protected boolean isDuplicateFilterEnabled -
processDefinitionsActivationDate
-
deploymentProperties
-
-
Constructor Details
-
DeploymentBuilderImpl
-
DeploymentBuilderImpl
public DeploymentBuilderImpl(RepositoryServiceImpl repositoryService, DeploymentEntity deployment, ResourceEntityManager resourceEntityManager)
-
-
Method Details
-
addInputStream
- Specified by:
addInputStreamin interfaceDeploymentBuilder
-
setProjectManifest
- Specified by:
setProjectManifestin interfaceDeploymentBuilder
-
getProjectManifest
-
hasProjectManifestSet
public boolean hasProjectManifestSet() -
setEnforcedAppVersion
- Specified by:
setEnforcedAppVersionin interfaceDeploymentBuilder
-
getEnforcedAppVersion
-
hasEnforcedAppVersion
public boolean hasEnforcedAppVersion() -
addInputStream
public DeploymentBuilder addInputStream(String resourceName, org.springframework.core.io.Resource resource) - Specified by:
addInputStreamin interfaceDeploymentBuilder
-
addClasspathResource
- Specified by:
addClasspathResourcein interfaceDeploymentBuilder
-
addString
- Specified by:
addStringin interfaceDeploymentBuilder
-
addBytes
- Specified by:
addBytesin interfaceDeploymentBuilder
-
addZipInputStream
- Specified by:
addZipInputStreamin interfaceDeploymentBuilder
-
addBpmnModel
- Specified by:
addBpmnModelin interfaceDeploymentBuilder
-
name
Description copied from interface:DeploymentBuilderGives the deployment the given name.- Specified by:
namein interfaceDeploymentBuilder
-
category
Description copied from interface:DeploymentBuilderGives the deployment the given category.- Specified by:
categoryin interfaceDeploymentBuilder
-
key
Description copied from interface:DeploymentBuilderGives the deployment the given key.- Specified by:
keyin interfaceDeploymentBuilder
-
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
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
Description copied from interface:DeploymentBuilderGives the deployment the given tenant id.- Specified by:
tenantIdin interfaceDeploymentBuilder
-
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
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
Description copied from interface:DeploymentBuilderAllows to add a property to thisDeploymentBuilderthat influences the deployment.- Specified by:
deploymentPropertyin interfaceDeploymentBuilder
-
deploy
Description copied from interface:DeploymentBuilderDeploys all provided sources to the Activiti engine.- Specified by:
deployin interfaceDeploymentBuilder
-
getDeployment
-
isProcessValidationEnabled
public boolean isProcessValidationEnabled() -
isBpmn20XsdValidationEnabled
public boolean isBpmn20XsdValidationEnabled() -
isDuplicateFilterEnabled
public boolean isDuplicateFilterEnabled() -
getProcessDefinitionsActivationDate
-
getDeploymentProperties
-