public interface StateChangeContext extends RuleContext
StateChangeContext
represents the context used in StateChange-Rule, StateChange and StateChangeFinal
It contains the TargetState and the SourceState and several functions like caching
RuleContext
Modifier and Type | Method and Description |
---|---|
<T extends Stateful> |
getBusinessObject(java.lang.Class<T> t)
This method returns the
BusinessObject that State should be changed |
<T extends GenericBusinessObject> |
getGenericBusinessObject(java.lang.Class<T> t)
This method returns the
GenericBusinessObject that State should be changed |
State |
getSourceState()
This method returns the state that has to be changed
|
UID |
getSourceStateId()
Deprecated.
use method
getSourceState() |
java.lang.Integer |
getSourceStateNumber()
Deprecated.
use method
getSourceState() |
State |
getTargetState()
This method returns the state the user wants to change to
|
UID |
getTargetStateId()
Deprecated.
use method
getTargetState() |
java.lang.Integer |
getTargetStateNumber()
Deprecated.
use method
getTargetState() |
void |
notify(java.lang.String message)
Creates a message with a
Priority . |
void |
notify(java.lang.String message,
Priority prio)
Creates a message with a
Priority . |
addContextCacheValue, getContextCacheValue, getLanguage, getUser, removeContextCacheValue
log, logError, logWarn
UID getSourceStateId()
getSourceState()
State getSourceState()
@Deprecated java.lang.Integer getSourceStateNumber()
getSourceState()
UID getTargetStateId()
getTargetState()
State getTargetState()
@Deprecated java.lang.Integer getTargetStateNumber()
getTargetState()
<T extends Stateful> T getBusinessObject(java.lang.Class<T> t)
BusinessObject
that State should be changedt
- Classtype being a Stateful
BusinessObject
extending Stateful
<T extends GenericBusinessObject> T getGenericBusinessObject(java.lang.Class<T> t) throws BusinessException
GenericBusinessObject
that State should be changedt
- 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
. The message is displayed
in the notification dialog in nuclos as a message with priority 'normal'. Please check class Priority to get more
information about the priority-handling.message
- Copyright © 2023. All rights reserved.