Package com.flowable.workobject.api
Interface WorkObjectDefinitionDeploymentBuilder
- All Known Implementing Classes:
WorkObjectDeploymentBuilderImpl
public interface WorkObjectDefinitionDeploymentBuilder
Builder for creating new deployments.
A builder instance can be obtained through
WorkObjectRepositoryService.createDeployment()
.
Multiple resources can be added to one deployment before calling the deploy()
operation.
After deploying, no more changes can be made to the returned deployment and the builder instance can be disposed.- Author:
- Tijs Rademakers, Joram Barrez
-
Method Summary
Modifier and Type Method Description WorkObjectDefinitionDeploymentBuilder
addClasspathResource(java.lang.String resource)
WorkObjectDefinitionDeploymentBuilder
addInputStream(java.lang.String resourceName, java.io.InputStream inputStream)
WorkObjectDefinitionDeploymentBuilder
addString(java.lang.String resourceName, java.lang.String text)
WorkObjectDefinitionDeploymentBuilder
addWorkObjectBytes(java.lang.String resourceName, byte[] workObjectBytes)
WorkObjectDefinitionDeploymentBuilder
category(java.lang.String category)
Gives the deployment the given category.WorkObjectDeployment
deploy()
Deploys all provided sources to the Flowable engine.WorkObjectDefinitionDeploymentBuilder
enableDuplicateFiltering()
Allows to add a property to the deployment builder that influences the deployment.WorkObjectDefinitionDeploymentBuilder
name(java.lang.String name)
Gives the deployment the given name.WorkObjectDefinitionDeploymentBuilder
parentDeploymentId(java.lang.String parentDeploymentId)
Gives the deployment the given parent deployment id.WorkObjectDefinitionDeploymentBuilder
tenantId(java.lang.String tenantId)
Gives the deployment the given tenant id.
-
Method Details
-
addInputStream
WorkObjectDefinitionDeploymentBuilder addInputStream(java.lang.String resourceName, java.io.InputStream inputStream) -
addClasspathResource
-
addString
WorkObjectDefinitionDeploymentBuilder addString(java.lang.String resourceName, java.lang.String text) -
addWorkObjectBytes
WorkObjectDefinitionDeploymentBuilder addWorkObjectBytes(java.lang.String resourceName, byte[] workObjectBytes) -
name
Gives the deployment the given name. -
category
Gives the deployment the given category. -
tenantId
Gives the deployment the given tenant id. -
parentDeploymentId
Gives the deployment the given parent deployment id. -
enableDuplicateFiltering
WorkObjectDefinitionDeploymentBuilder enableDuplicateFiltering()Allows to add a property to the deployment builder that influences the deployment. -
deploy
WorkObjectDeployment deploy()Deploys all provided sources to the Flowable engine.
-