public interface WorkObjectBuilder extends WorkObjectValueSetters<WorkObjectBuilder>
Defines the functionality of a work object builder.
In addition to the normal value setting methods, a work object builder also provides convenience methods to set fields that will be read-only once the work object instance has been persisted.
Modifier and Type | Method and Description |
---|---|
WorkObject |
build()
Builds the work object defined by the builder.
|
WorkObjectBuilder |
definitionId(String definitionId)
Sets the work object definition ID.
|
WorkObjectBuilder |
externalId(String externalId)
Sets the work object external ID.
|
WorkObjectBuilder |
globalId(String globalId)
Sets the work object global ID.
|
WorkObjectBuilder |
id(String id)
Sets the work object ID.
|
WorkObjectBuilder |
path(List<String> path)
Sets the work object path.
|
WorkObjectBuilder |
providerId(String providerId)
Sets the work object provider ID.
|
WorkObjectBuilder |
tenantId(String tenantId)
Sets the work object ID.
|
WorkObjectBuilder |
type(String type)
Sets the work object type.
|
assignedGroupId, assigneeId, candidateGroupIds, candidateUserIds, delete, delete, description, dueTime, name, ownerId, priority, resubmissionTime, state, subState, value, value, values
WorkObjectBuilder type(String type)
Sets the work object type.
type
- the new work object typeIllegalStateException
- if the work object has already been persistedWorkObjectBuilder id(String id)
Sets the work object ID.
id
- the new work object IDIllegalStateException
- if the work object has already been persistedWorkObjectBuilder tenantId(String tenantId)
Sets the work object ID.
tenantId
- the new work object tenant IDIllegalStateException
- if the work object has already been persistedWorkObjectBuilder providerId(String providerId)
Sets the work object provider ID.
providerId
- the new work object provider IDIllegalStateException
- if the work object has already been persistedWorkObjectBuilder externalId(String externalId)
Sets the work object external ID.
externalId
- the new work object external IDIllegalStateException
- if the work object has already been persistedWorkObjectBuilder path(List<String> path)
Sets the work object path.
This method should only be used when creating temporary in-memory work objects. For persisted work objects you should create the work object without a path and specify the parent work object ID when the work object is persisted (which will set the path correctly).
path
- the new pathIllegalStateException
- if the work object has already been persistedWorkObjectBuilder definitionId(String definitionId)
Sets the work object definition ID.
definitionId
- the new work object definition IDIllegalStateException
- if the work object has already been persistedWorkObjectBuilder globalId(String globalId)
Sets the work object global ID.
globalId
- the new work object global IDIllegalStateException
- if the work object has already been persistedWorkObject build()
Builds the work object defined by the builder.
Copyright © 2010 - 2017 edorasware ag. All Rights Reserved.