public class BusinessDataRetriever extends Object
| Constructor and Description |
|---|
BusinessDataRetriever(BusinessDataRepository businessDataRepository,
org.bonitasoft.engine.business.data.proxy.ServerProxyfier proxyfier) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getBusinessData(org.bonitasoft.engine.core.process.instance.model.business.data.SRefBusinessDataInstance refBusinessDataInstance)
Retrieves a Business Data or a List of Business Data related to the given
SRefBusinessDataInstance depending on its type (single Entity
if it's a SSimpleRefBusinessDataInstance or a ListSMultiRefBusinessDataInstance. |
List<Entity> |
getMultiBusinessData(org.bonitasoft.engine.core.process.instance.model.business.data.SMultiRefBusinessDataInstance dataRef,
Class<? extends Entity> bizClass)
Retrieves the list of Business Data related to the given
SMultiRefBusinessDataInstance. |
Entity |
getSimpleBusinessData(org.bonitasoft.engine.core.process.instance.model.business.data.SSimpleRefBusinessDataInstance dataRef,
Class<? extends Entity> bizClass)
Retrieves the Business Data related to the given
SSimpleRefBusinessDataInstance. |
public BusinessDataRetriever(BusinessDataRepository businessDataRepository, org.bonitasoft.engine.business.data.proxy.ServerProxyfier proxyfier)
public Entity getSimpleBusinessData(org.bonitasoft.engine.core.process.instance.model.business.data.SSimpleRefBusinessDataInstance dataRef, Class<? extends Entity> bizClass) throws SBusinessDataNotFoundException
SSimpleRefBusinessDataInstance. If the SSimpleRefBusinessDataInstance does not
references any Business Data the result will be null.dataRef - the business data referencebizClass - the business data classSSimpleRefBusinessDataInstance or null if no Business Data is referenced.SBusinessDataNotFoundException - when no Business Data is found for the given idpublic List<Entity> getMultiBusinessData(org.bonitasoft.engine.core.process.instance.model.business.data.SMultiRefBusinessDataInstance dataRef, Class<? extends Entity> bizClass)
SMultiRefBusinessDataInstance. If the SMultiRefBusinessDataInstance does not
references any Business Data the result will em empty list.dataRef - the multi business data referencebizClass - the business data classSMultiRefBusinessDataInstance or empty list if no Business Data is referenced.public Object getBusinessData(org.bonitasoft.engine.core.process.instance.model.business.data.SRefBusinessDataInstance refBusinessDataInstance) throws SBusinessDataNotFoundException, org.bonitasoft.engine.expression.exception.SExpressionEvaluationException
SRefBusinessDataInstance depending on its type (single Entity
if it's a SSimpleRefBusinessDataInstance or a ListSMultiRefBusinessDataInstance.
This method will use getSimpleBusinessData(SSimpleRefBusinessDataInstance, Class) or
getMultiBusinessData(SMultiRefBusinessDataInstance, Class) based on the data reference typerefBusinessDataInstance - the business data referenceEntity or List<Entity> if the business data reference is a SSimpleRefBusinessDataInstance or a
SMultiRefBusinessDataInstance respectivelySBusinessDataNotFoundExceptionorg.bonitasoft.engine.expression.exception.SExpressionEvaluationExceptionCopyright © 2016 Bonitasoft S.A.. All rights reserved.