public interface AnyWorkObjectService extends WorkObjectService<WorkObjectId,WorkObjectDefinitionId,AnyWorkObjectProviderId,AnyWorkObject,AnyWorkObjectQuery,AnyWorkObjectModification,AnyWorkObjectModification.Builder,AnyWorkObjectUpdate,AnyWorkObjectUpdate.Builder>
Modifier and Type | Method and Description |
---|---|
WorkObjectId |
addWorkObject(AnyWorkObject anyWorkObject,
String description)
Adds the given ad-hoc concrete work object.
|
WorkObjectId |
addWorkObject(AnyWorkObject anyWorkObject,
WorkObjectId parentId,
String description)
Adds the given ad-hoc concrete work object under the given parent.
|
void |
completeWorkObject(WorkObjectId id,
String description)
Completes the specified concrete work object by setting its state to
WorkObjectState.COMPLETED . |
long |
countWorkObjects(AnyWorkObjectQuery query)
Counts the concrete work objects that match the given query.
|
long |
countWorkObjects(AnyWorkObjectQuery query,
SearchScope searchScope)
Counts the concrete work objects that match the given query.
|
long |
countWorkObjects(Predicate predicate)
Counts the concrete work objects that match the query with the given predicate.
|
long |
countWorkObjects(Predicate predicate,
SearchScope searchScope)
Counts the concrete work objects that match the query with the given predicate.
|
void |
deleteWorkObject(AnyWorkObjectId workObjectId,
String description)
Deletes the given entity with all its variables.
|
AnyWorkObject |
findWorkObject(AnyWorkObjectQuery query)
Finds the concrete work object that matches the given query.
|
AnyWorkObject |
findWorkObject(AnyWorkObjectQuery query,
SearchScope searchScope)
Finds the concrete work object that matches the given query.
|
AnyWorkObject |
findWorkObject(Predicate predicate)
Finds the concrete work object that matches the query with the given predicate.
|
AnyWorkObject |
findWorkObject(Predicate predicate,
SearchScope searchScope)
Finds the concrete work object that matches the query with the given predicate.
|
AnyWorkObject |
findWorkObjectByExternalId(WorkObjectId externalId)
Finds the concrete work object with the given external id.
|
AnyWorkObject |
findWorkObjectByExternalId(WorkObjectId externalId,
SearchScope searchScope)
Finds the concrete work object with the given external id in the given scope.
|
AnyWorkObject |
findWorkObjectByGlobalId(GlobalId globalId)
Finds the concrete work object with the given global id.
|
AnyWorkObject |
findWorkObjectByGlobalId(GlobalId globalId,
SearchScope searchScope)
Finds the concrete work object with the given global id in the given scope.
|
AnyWorkObject |
findWorkObjectById(WorkObjectId id)
Finds the concrete work object with the given concrete work object id.
|
AnyWorkObject |
findWorkObjectById(WorkObjectId id,
SearchScope searchScope)
Finds the concrete work object with the given concrete work object id in the given scope.
|
List<AnyWorkObject> |
findWorkObjects(AnyWorkObjectQuery query)
Finds the concrete work objects that match the given query.
|
List<AnyWorkObject> |
findWorkObjects(AnyWorkObjectQuery query,
SearchScope searchScope)
Finds the concrete work objects that match the given query.
|
List<AnyWorkObject> |
findWorkObjects(Predicate predicate)
Finds the concrete work objects that match the query with the given predicate.
|
List<AnyWorkObject> |
findWorkObjects(Predicate predicate,
SearchScope searchScope)
Finds the concrete work objects that match the query with the given predicate.
|
AnyWorkObject |
getWorkObjectByGlobalId(GlobalId globalId)
Finds the work object with the given global id.
|
AnyWorkObject |
getWorkObjectByGlobalId(GlobalId globalId,
SearchScope searchScope)
Finds the work object with the given global id in the given scope.
|
AnyWorkObject |
getWorkObjectById(WorkObjectId id)
Finds the work object with the given work object id.
|
AnyWorkObject |
getWorkObjectById(WorkObjectId id,
SearchScope searchScope)
Finds the work object with the given work object id in the given scope.
|
WorkObjectId |
startWorkObject(WorkObjectDefinitionId workObjectDefinitionId)
Starts a new concrete work object based on the concrete work object definition with the given id.
|
WorkObjectId |
startWorkObject(WorkObjectDefinitionId workObjectDefinitionId,
Map<String,Object> variables)
Starts a new work object based on the work object definition with the given id.
|
WorkObjectId |
startWorkObject(WorkObjectDefinitionId definitionId,
Map<String,Object> variables,
WorkObjectId parentId)
Starts a new work object based on the definition with the given id.
|
WorkObjectId |
startWorkObject(WorkObjectDefinitionId definitionId,
String name,
Object value)
Starts a new work object based on the definition with the given id.
|
WorkObjectId |
startWorkObject(WorkObjectDefinitionId definitionId,
String name,
Object value,
WorkObjectId parentId)
Starts a new work object based on the definition with the given id.
|
WorkObjectId |
startWorkObject(WorkObjectDefinitionId workObjectDefinitionId,
VariableMap variables)
Starts a new work object based on the work object definition with the given id.
|
WorkObjectId |
startWorkObject(WorkObjectDefinitionId workObjectDefinitionId,
VariableMap variables,
WorkObjectId parentId)
Starts a new work object based on the work object definition with the given id.
|
<V> WorkObjectId |
startWorkObject(WorkObjectDefinitionId definitionId,
VariableName<V,?> name,
V value)
Starts a new work object based on the definition with the given id.
|
<V> WorkObjectId |
startWorkObject(WorkObjectDefinitionId definitionId,
VariableName<V,?> name,
V value,
WorkObjectId parentId)
Starts a new work object based on the definition with the given id.
|
WorkObjectId |
startWorkObject(WorkObjectDefinitionId definitionId,
WorkObjectId parentId)
Starts a new work object based on the definition with the given id.
|
addEntity, addEntityGeneric, completeEntity, deleteEntity, setAssignedGroup, setAssignedGroup, setAssignedUser, setAssignedUser, setCandidateGroups, setCandidateGroups, setCandidateUsers, setCandidateUsers, setDueTime, setDueTime, setOwner, setOwner, setParent, setParent, setPriority, setPriority, setResubmissionTime, setResubmissionTime, setState, setState, setSubState, setSubState, startEntity, startEntity, startEntity, startEntity, startEntityGeneric
apply, createModificationBuilder, createModificationBuilder, createReadableUpdateBuilder, createUpdateBuilder, deleteVariable, deleteVariable, deleteVariable, deleteVariable, deleteVariables, deleteVariables, putVariable, putVariable, putVariable, putVariable, putVariables, putVariables, putVariables, putVariables, setDescription, setDescription, setName, setName, startEntity, startEntity, startEntity, startEntity
addEntity, addEntityGeneric, countEntities, countEntities, countEntities, countEntities, findEntities, findEntities, findEntities, findEntities, findEntity, findEntity, findEntity, findEntity, findEntityByExternalId, findEntityByExternalId, findEntityByGlobalId, findEntityByGlobalId, findEntityById, findEntityById, findExternalIdByGlobalId, findExternalIdByGlobalId, findExternalIdById, findExternalIdById, findGlobalIdByExternalId, findGlobalIdByExternalId, findIdByExternalId, findIdByExternalId, getEntityByGlobalId, getEntityByGlobalId, getEntityById, getEntityById
AnyWorkObject getWorkObjectById(WorkObjectId id)
id
- the id of the work object to findEntityNotFoundException
- if work object cannot be foundAnyWorkObject getWorkObjectById(WorkObjectId id, SearchScope searchScope)
id
- the id of the work object to findsearchScope
- the scope in which to search for the work objectEntityNotFoundException
- if work object cannot be foundAnyWorkObject getWorkObjectByGlobalId(GlobalId globalId)
globalId
- the global id of the work object to findEntityNotFoundException
- if work object cannot be foundAnyWorkObject getWorkObjectByGlobalId(GlobalId globalId, SearchScope searchScope)
globalId
- the global id of the work object to findsearchScope
- the scope in which to search for the work objectEntityNotFoundException
- if work object cannot be foundAnyWorkObject findWorkObjectById(WorkObjectId id)
id
- the id of the concrete work object to findAnyWorkObject findWorkObjectById(WorkObjectId id, SearchScope searchScope)
id
- the id of the concrete work object to findsearchScope
- the scope in which to search for the concrete work objectAnyWorkObject findWorkObjectByGlobalId(GlobalId globalId)
globalId
- the global id of the work object to findAnyWorkObject findWorkObjectByGlobalId(GlobalId globalId, SearchScope searchScope)
globalId
- the global id of the work object to findsearchScope
- the scope in which to search for the concrete work objectAnyWorkObject findWorkObjectByExternalId(WorkObjectId externalId)
externalId
- the external id of the concrete work object to findAnyWorkObject findWorkObjectByExternalId(WorkObjectId externalId, SearchScope searchScope)
externalId
- the external id of the concrete work object to findsearchScope
- the scope in which to search for the concrete work objectAnyWorkObject findWorkObject(Predicate predicate)
Note: No sorting, paging, nor query hints are applied. This can become a potential query performance issue.
predicate
- the predicate to apply when executing the queryAnyWorkObject findWorkObject(Predicate predicate, SearchScope searchScope)
Note: No sorting, paging, nor query hints are applied. This can become a potential query performance issue.
predicate
- the predicate to apply when executing the querysearchScope
- the scope in which to search for the concrete work objectList<AnyWorkObject> findWorkObjects(Predicate predicate)
Note: No sorting, paging, nor query hints are applied. This can become a potential query performance issue.
predicate
- the predicate to apply when executing the queryList<AnyWorkObject> findWorkObjects(Predicate predicate, SearchScope searchScope)
Note: No sorting, paging, nor query hints are applied. This can become a potential query performance issue.
predicate
- the predicate to apply when executing the querysearchScope
- the scope in which to search for the concrete work objectslong countWorkObjects(Predicate predicate)
predicate
- the predicate to apply when executing the querylong countWorkObjects(Predicate predicate, SearchScope searchScope)
predicate
- the predicate to apply when executing the querysearchScope
- the scope in which to count number of concrete work objectsAnyWorkObject findWorkObject(AnyWorkObjectQuery query)
query
- the query to executeAnyWorkObject findWorkObject(AnyWorkObjectQuery query, SearchScope searchScope)
query
- the query to executesearchScope
- the scope in which to search for the concrete work objectList<AnyWorkObject> findWorkObjects(AnyWorkObjectQuery query)
query
- the query to executeList<AnyWorkObject> findWorkObjects(AnyWorkObjectQuery query, SearchScope searchScope)
query
- the query to executesearchScope
- the scope in which to search for the concrete work objectslong countWorkObjects(AnyWorkObjectQuery query)
query
- the query to executelong countWorkObjects(AnyWorkObjectQuery query, SearchScope searchScope)
query
- the query to executesearchScope
- the scope in which to count number of concrete work objectsWorkObjectId addWorkObject(AnyWorkObject anyWorkObject, String description)
undefined
, the concrete work object id is generated by the
persistence component of the system and guaranteed to be unique. In all other cases, the contributor of the concrete work object needs to ensure that the concrete work
object's id is unique.anyWorkObject
- the ad-hoc concrete work object to adddescription
- transient meta information regarding the reason to add the ad-hoc concrete work objectEntity.getId()
,
Entity.getExternalId()
WorkObjectId addWorkObject(AnyWorkObject anyWorkObject, WorkObjectId parentId, String description)
undefined
, the concrete work object id is
generated by the persistence component of the system and guaranteed to be unique. In all other cases, the contributor of the concrete work object needs to ensure that the
concrete work object's id is unique.anyWorkObject
- the ad-hoc concrete work object to addparentId
- the parent under which to add the ad-hoc concrete work objectdescription
- transient meta information regarding the reason to add the ad-hoc concrete work objectEntity.getId()
,
Entity.getExternalId()
void completeWorkObject(WorkObjectId id, String description)
WorkObjectState.COMPLETED
.id
- the concrete work object to completedescription
- transient meta information regarding the reason to complete the concrete work objectEntityNotFoundException
- if the given concrete work object cannot be foundWorkObjectId startWorkObject(WorkObjectDefinitionId workObjectDefinitionId)
workObjectDefinitionId
- the id of the concrete work object definition for which to start a new concrete work objectEntityNotFoundException
- if the given concrete work object definition cannot be foundWorkObjectId startWorkObject(WorkObjectDefinitionId definitionId, String name, Object value)
definitionId
- the id of the definition for which to start a new work objectname
- the name of the variable to build the initial data set of the work object that is startedvalue
- the value of the variable to build the initial data set of the work object that is startedEntityNotFoundException
- if the given definition cannot be found<V> WorkObjectId startWorkObject(WorkObjectDefinitionId definitionId, VariableName<V,?> name, V value)
V
- the expected transient type of the variabledefinitionId
- the id of the definition for which to start a new work objectname
- the name of the variable to build the initial data set of the work object that is startedvalue
- the value of the variable to build the initial data set of the work object that is startedEntityNotFoundException
- if the given definition cannot be foundWorkObjectId startWorkObject(WorkObjectDefinitionId workObjectDefinitionId, Map<String,Object> variables)
workObjectDefinitionId
- objectDefinitionId the id of the work object definition for which to start a new work objectvariables
- the variables to build the initial data set of the work object that is startedEntityNotFoundException
- if the given work object definition cannot be foundWorkObjectId startWorkObject(WorkObjectDefinitionId workObjectDefinitionId, VariableMap variables)
workObjectDefinitionId
- objectDefinitionId the id of the work object definition for which to start a new work objectvariables
- the variables to build the initial data set of the work object that is startedEntityNotFoundException
- if the given work object definition cannot be foundWorkObjectId startWorkObject(WorkObjectDefinitionId definitionId, WorkObjectId parentId)
definitionId
- the id of the definition for which to start a new work objectparentId
- the id of the parent work object whose context the work object is started inEntityNotFoundException
- if no definition work object with the given id can be foundWorkObjectId startWorkObject(WorkObjectDefinitionId definitionId, String name, Object value, WorkObjectId parentId)
definitionId
- the id of the definition for which to start a new work objectname
- the name of the variable to build the initial data set of the work object that is startedvalue
- the value of the variable to build the initial data set of the work object that is startedparentId
- the id of the parent work object whose context the work object is started inEntityNotFoundException
- if no definition work object with the given id can be found<V> WorkObjectId startWorkObject(WorkObjectDefinitionId definitionId, VariableName<V,?> name, V value, WorkObjectId parentId)
V
- the expected transient type of the variabledefinitionId
- the id of the definition for which to start a new work objectname
- the name of the variable to build the initial data set of the work object that is startedvalue
- the value of the variable to build the initial data set of the work object that is startedparentId
- the id of the parent work object whose context the work object is started inEntityNotFoundException
- if no definition work object with the given id can be foundWorkObjectId startWorkObject(WorkObjectDefinitionId definitionId, Map<String,Object> variables, WorkObjectId parentId)
definitionId
- the id of the definition for which to start a new work objectvariables
- the variables to build the initial data set of the work object that is startedparentId
- the id of the parent work object whose context the work object is started inEntityNotFoundException
- if no definition work object with the given id can be foundWorkObjectId startWorkObject(WorkObjectDefinitionId workObjectDefinitionId, VariableMap variables, WorkObjectId parentId)
workObjectDefinitionId
- objectDefinitionId the id of the work object definition for which to start a new work objectvariables
- the variables to build the initial data set of the work object that is startedparentId
- the id of the parent work object whose context the work object is started inEntityNotFoundException
- if the given work object definition cannot be foundvoid deleteWorkObject(AnyWorkObjectId workObjectId, String description)
IllegalArgumentException
is thrown such that the path of the children is
always valid.workObjectId
- the work object id to deletedescription
- transient meta information regarding the reason to delete the work objectEntityNotFoundException
- if no work object with given work object id was foundIllegalArgumentException
- if the work object to delete has children.Copyright © 2010 - 2018 edorasware ag. All Rights Reserved.