Class DataHelperUtility
java.lang.Object
org.cristalise.kernel.lifecycle.routingHelpers.DataHelperUtility
Utility class to retrieve and resolve DataHelpers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectevaluateValue(ItemPath itemPath, Object value, String actContext, TransactionKey transactionKey) If thestatic DataHelpergetDataHelper(String id) First checks the configuration properties to instantiate the requested Datahelper.
-
Constructor Details
-
DataHelperUtility
public DataHelperUtility()
-
-
Method Details
-
getDataHelper
First checks the configuration properties to instantiate the requested Datahelper. If there is such no property, it uses the given id to instantiate one of these classes:ViewpointDataHelper,PropertyDataHelper,ActivityDataHelper- Parameters:
id- the string used to identify the DataHelper in the cristal-ise configuration- Returns:
- the DataHelper instance
- Throws:
InvalidDataException- could not configure DataHelper
-
evaluateValue
public static Object evaluateValue(ItemPath itemPath, Object value, String actContext, TransactionKey transactionKey) throws InvalidDataException, PersistencyException, ObjectNotFoundException If the- Parameters:
itemPath- the actual Item contextvalue- the value to be evaluatedactContext- activity pathtransactionKey- database transaction transactionKey- Returns:
- String value which was evaluated using
DataHelperimplementation - Throws:
InvalidDataException- data inconsistencyPersistencyException- persistency issueObjectNotFoundException- object was not found
-