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 theBusinessObject
containing the entry-data.<T extends GenericBusinessObject>
TThis method returns theGenericBusinessObject
containing the entry-data to edit during runtime.boolean
This method returns true if theBusinessObject
of the context is updated after rule execution.void
Creates a message with normalPriority
.void
Creates a message with aPriority
.void
setUpdateAfterExecution
(boolean bUpdateAfterExecution) Sets flag "UpdateAfterExecution" to control if theBusinessObject
of the context is updated after rule execution.Methods inherited from interface org.nuclos.api.context.LogContext
log, logError, logWarn
Methods inherited from interface org.nuclos.api.context.RuleContext
addContextCacheValue, getContextCacheValue, getLanguage, getUser, removeContextCacheValue
-
Method Details
-
getBusinessObject
This method returns theBusinessObject
containing the entry-data.- Parameters:
t
- Classtype being aBusinessObject
- Returns:
BusinessObject
-
getGenericBusinessObject
This method returns theGenericBusinessObject
containing the entry-data to edit during runtime.- Parameters:
t
- Classtype being aGenericBusinessObject
- Returns:
GenericBusinessObject
extendingGenericBusinessObject
- 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 theBusinessObject
of the context is updated after rule execution. "true" means: update after rule execution.- Parameters:
bUpdateAfterExecution
-
-
getUpdateAfterExecution
boolean getUpdateAfterExecution()This method returns true if theBusinessObject
of the context is updated after rule execution.- Returns:
- true or false
-