public class DeploymentBuilderImpl extends Object implements DeploymentBuilder, Serializable
Modifier and Type | Field and Description |
---|---|
protected static String |
DEFAULT_ENCODING |
protected DeploymentEntity |
deployment |
protected boolean |
isBpmn20XsdValidationEnabled |
protected boolean |
isDuplicateFilterEnabled |
protected boolean |
isProcessValidationEnabled |
protected Date |
processDefinitionsActivationDate |
protected RepositoryServiceImpl |
repositoryService |
Constructor and Description |
---|
DeploymentBuilderImpl(RepositoryServiceImpl repositoryService) |
Modifier and Type | Method and Description |
---|---|
DeploymentBuilder |
activateProcessDefinitionsOn(Date date)
Sets the date on which the process definitions contained in this deployment
will be activated.
|
DeploymentBuilder |
addBpmnModel(String resourceName,
org.activiti.bpmn.model.BpmnModel bpmnModel) |
DeploymentBuilder |
addClasspathResource(String resource) |
DeploymentBuilder |
addInputStream(String resourceName,
InputStream inputStream) |
DeploymentBuilder |
addString(String resourceName,
String text) |
DeploymentBuilder |
addZipInputStream(ZipInputStream zipInputStream) |
DeploymentBuilder |
category(String category)
Gives the deployment the given category.
|
Deployment |
deploy()
Deploys all provided sources to the Activiti engine.
|
DeploymentBuilder |
disableBpmnValidation()
If called, no validation that the process definition is executable on the engine
will be done against the process definition.
|
DeploymentBuilder |
disableSchemaValidation()
If called, no XML schema validation against the BPMN 2.0 XSD.
|
DeploymentBuilder |
enableDuplicateFiltering()
If set, this deployment will be compared to any previous deployment.
|
DeploymentEntity |
getDeployment() |
Date |
getProcessDefinitionsActivationDate() |
boolean |
isBpmn20XsdValidationEnabled() |
boolean |
isDuplicateFilterEnabled() |
boolean |
isProcessValidationEnabled() |
DeploymentBuilder |
name(String name)
Gives the deployment the given name.
|
DeploymentBuilder |
tenantId(String tenantId)
Gives the deployment the given tenant id.
|
protected static final String DEFAULT_ENCODING
protected transient RepositoryServiceImpl repositoryService
protected DeploymentEntity deployment
protected boolean isBpmn20XsdValidationEnabled
protected boolean isProcessValidationEnabled
protected boolean isDuplicateFilterEnabled
protected Date processDefinitionsActivationDate
public DeploymentBuilderImpl(RepositoryServiceImpl repositoryService)
public DeploymentBuilder addInputStream(String resourceName, InputStream inputStream)
addInputStream
in interface DeploymentBuilder
public DeploymentBuilder addClasspathResource(String resource)
addClasspathResource
in interface DeploymentBuilder
public DeploymentBuilder addString(String resourceName, String text)
addString
in interface DeploymentBuilder
public DeploymentBuilder addZipInputStream(ZipInputStream zipInputStream)
addZipInputStream
in interface DeploymentBuilder
public DeploymentBuilder addBpmnModel(String resourceName, org.activiti.bpmn.model.BpmnModel bpmnModel)
addBpmnModel
in interface DeploymentBuilder
public DeploymentBuilder name(String name)
DeploymentBuilder
name
in interface DeploymentBuilder
public DeploymentBuilder category(String category)
DeploymentBuilder
category
in interface DeploymentBuilder
public DeploymentBuilder disableBpmnValidation()
DeploymentBuilder
disableBpmnValidation
in interface DeploymentBuilder
public DeploymentBuilder disableSchemaValidation()
DeploymentBuilder
disableSchemaValidation
in interface DeploymentBuilder
public DeploymentBuilder tenantId(String tenantId)
DeploymentBuilder
tenantId
in interface DeploymentBuilder
public DeploymentBuilder enableDuplicateFiltering()
DeploymentBuilder
enableDuplicateFiltering
in interface DeploymentBuilder
public DeploymentBuilder activateProcessDefinitionsOn(Date date)
DeploymentBuilder
activateProcessDefinitionsOn
in interface DeploymentBuilder
public Deployment deploy()
DeploymentBuilder
deploy
in interface DeploymentBuilder
public DeploymentEntity getDeployment()
public boolean isProcessValidationEnabled()
public boolean isBpmn20XsdValidationEnabled()
public boolean isDuplicateFilterEnabled()
public Date getProcessDefinitionsActivationDate()
Copyright © 2016 Alfresco. All rights reserved.