public interface CustomContext extends RuleContext
CustomContext
represents the context used in a Custom-Rule
It contains the BusinessObject
to edit and several functions like caching
RuleContext
Modifier and Type | Method and Description |
---|---|
<T extends BusinessObject> |
getBusinessObject(java.lang.Class<T> t)
This method returns the
BusinessObject containing the entry-data. |
<T extends GenericBusinessObject> |
getGenericBusinessObject(java.lang.Class<T> t)
This method returns the
GenericBusinessObject containing the entry-data to edit
during runtime. |
boolean |
getUpdateAfterExecution()
This method returns true if the
BusinessObject of the context is updated
after rule execution. |
void |
notify(java.lang.String message)
Creates a message with normal
Priority . |
void |
notify(java.lang.String message,
Priority prio)
Creates a message with a
Priority . |
void |
setUpdateAfterExecution(boolean bUpdateAfterExecution)
Sets flag "UpdateAfterExecution" to control if the
BusinessObject of the context is updated
after rule execution. |
addContextCacheValue, getContextCacheValue, getLanguage, getUser, removeContextCacheValue
log, logError, logWarn
<T extends BusinessObject> T getBusinessObject(java.lang.Class<T> t)
BusinessObject
containing the entry-data.t
- Classtype being a BusinessObject
BusinessObject
<T extends GenericBusinessObject> T getGenericBusinessObject(java.lang.Class<T> t) throws BusinessException
GenericBusinessObject
containing the entry-data to edit
during runtime.t
- Classtype being a GenericBusinessObject
GenericBusinessObject
extending GenericBusinessObject
BusinessException
void notify(java.lang.String message, Priority prio)
Priority
. The message is displayed
in the notification dialog in nuclos. Please check class Priority to get more
information about the priority-handling.message
- prio
- void notify(java.lang.String message)
Priority
. It is displayed
in the notification dialog in nuclos as a message. Please check class Priority to get more
information about the priority-handling.message
- void setUpdateAfterExecution(boolean bUpdateAfterExecution)
BusinessObject
of the context is updated
after rule execution. "true" means: update after rule execution.bUpdateAfterExecution
- boolean getUpdateAfterExecution()
BusinessObject
of the context is updated
after rule execution.Copyright © 2024. All rights reserved.