public interface ITBRuleDefinition
extends java.lang.Cloneable
Represents a Rule definition.
Lifecycle of a rule definition - When a rule definition is created, it becomes immediately runnable as long as it has been marked as enabled.
The rule
| Modifier and Type | Method and Description |
|---|---|
void |
addAction(ITBRuleAction action)
Add an action to the rule
|
ITBRuleDefinition |
clone()
Returns a cloned instance.
|
java.util.List<ITBRuleAction> |
getActions()
Returns the list of actions for the rule.
|
TBRuleDefinitionCategory |
getCategory()
Get the rule category
|
IWFConditionEval |
getCondition()
Returns the rule criteria.
|
java.lang.String |
getCreatedBy()
Returns the user name who created the rule definition
|
java.util.Date |
getCreatedDate()
Returns the creation date
|
java.lang.String |
getDescription()
Get the description of the rule
|
Id |
getId()
Returns unique identifier of the rule definition
|
int |
getLatestVersionNumber()
Returns version number of the latest rule definition.
|
TBRuleDefinitionState |
getLatestVersionState()
Gets the state of the latest version of the rule - draft/published
|
java.lang.String |
getModifiedBy()
Returns the user name who last modified the rule definition
|
java.util.Date |
getModifiedDate()
Returns the last modified date
|
java.lang.String |
getName()
Returns name of the rule definition
|
java.lang.String |
getObjectType()
Returns the object type name.
|
TBRuleDefinitionState |
getState()
Returns the current state of the rule - draft/published
|
TBRuleDefinitionType |
getType()
Get the type of the rule that determines when it should be run
|
Id |
getVersionId()
Returns version id of the rule definition.
|
int |
getVersionNumber()
Returns version number of the rule definition.
|
boolean |
isEnabled()
Returns if the rule definition is enabled or not.
|
boolean |
isObjectInstanceReadOnly()
Returns if the rule definition is read only.
|
void |
setActions(java.util.List<ITBRuleAction> actions)
Sets the actions to be executed by the rule
|
void |
setCategory(TBRuleDefinitionCategory category)
Set the rule category
|
void |
setCondition(IWFConditionEval criteria)
Sets the rule criteria.
|
void |
setDescription(java.lang.String description)
Set the description of the rule
|
void |
setEnabled(boolean isEnabled)
Enables or disables the rule definition.
|
void |
setLatestVersionState(TBRuleDefinitionState latestVersionState)
Sets the state of the latest version of the rule to be draft ot published
|
void |
setObjectInstanceReadOnly() |
void |
setObjectType(java.lang.String objectType) |
void |
setState(TBRuleDefinitionState state)
Sets the current state of the rule - draft/published
|
void |
setType(TBRuleDefinitionType type)
Set the type of the rule to determine when it should be run
|
Id getId()
Id getVersionId()
int getVersionNumber()
int getLatestVersionNumber()
java.lang.String getName()
java.lang.String getDescription()
void setDescription(java.lang.String description)
description - TBRuleDefinitionType getType()
void setType(TBRuleDefinitionType type)
type - TBRuleDefinitionCategory getCategory()
void setCategory(TBRuleDefinitionCategory category)
category - java.lang.String getObjectType()
void setObjectType(java.lang.String objectType)
java.util.List<ITBRuleAction> getActions()
void setActions(java.util.List<ITBRuleAction> actions)
actions - IWFConditionEval getCondition()
void setCondition(IWFConditionEval criteria)
criteria - boolean isEnabled()
void setEnabled(boolean isEnabled)
isEnabled - java.util.Date getModifiedDate()
java.lang.String getModifiedBy()
java.util.Date getCreatedDate()
java.lang.String getCreatedBy()
void setObjectInstanceReadOnly()
TBRuleDefinitionState getState()
void setState(TBRuleDefinitionState state)
state - TBRuleDefinitionState getLatestVersionState()
void setLatestVersionState(TBRuleDefinitionState latestVersionState)
latestVersionState - void addAction(ITBRuleAction action)
action - boolean isObjectInstanceReadOnly()
ITBRuleDefinition clone()
isObjectInstanceReadOnly() of the cloned instance is always false.
Licensed Materials - Property of IBM
OpenPages with Watson (PID: 5725-D51)
© Copyright IBM Corporation 2013, 2021. All Rights Reserved.
US Government Users Restricted Rights -
Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.