Package org.nuclos.api.context
Interface CustomContext
- All Superinterfaces:
LogContext,RuleContext
CustomContext represents the context used in a Custom-Rule
It contains the BusinessObject to edit and several functions like caching
- Author:
- Matthias Reichart
- See Also:
-
Method Summary
Modifier and TypeMethodDescription<T extends BusinessObject>
TgetBusinessObject(Class<T> t) This method returns theBusinessObjectcontaining the entry-data.<T extends GenericBusinessObject>
TThis method returns theGenericBusinessObjectcontaining the entry-data to edit during runtime.booleanThis method returns true if theBusinessObjectof the context is updated after rule execution.voidCreates a message with normalPriority.voidCreates a message with aPriority.voidsetUpdateAfterExecution(boolean bUpdateAfterExecution) Sets flag "UpdateAfterExecution" to control if theBusinessObjectof the context is updated after rule execution.Methods inherited from interface org.nuclos.api.context.LogContext
log, logError, logWarnMethods inherited from interface org.nuclos.api.context.RuleContext
addContextCacheValue, getContextCacheValue, getLanguage, getLocale, getUser, removeContextCacheValue
-
Method Details
-
getBusinessObject
This method returns theBusinessObjectcontaining the entry-data.- Parameters:
t- Classtype being aBusinessObject- Returns:
BusinessObject
-
getGenericBusinessObject
This method returns theGenericBusinessObjectcontaining the entry-data to edit during runtime.- Parameters:
t- Classtype being aGenericBusinessObject- Returns:
GenericBusinessObjectextendingGenericBusinessObject- Throws:
BusinessException
-
notify
Creates a message with aPriority. The message is displayed in the notification dialog in nuclos. Please check class Priority to get more information about the priority-handling.- Parameters:
message-prio-
-
notify
Creates a message with normalPriority. It is displayed in the notification dialog in nuclos as a message. Please check class Priority to get more information about the priority-handling.- Parameters:
message-
-
setUpdateAfterExecution
void setUpdateAfterExecution(boolean bUpdateAfterExecution) Sets flag "UpdateAfterExecution" to control if theBusinessObjectof the context is updated after rule execution. "true" means: update after rule execution.- Parameters:
bUpdateAfterExecution-
-
getUpdateAfterExecution
boolean getUpdateAfterExecution()This method returns true if theBusinessObjectof the context is updated after rule execution.- Returns:
- true or false
-