org.drools.repository
Class StateItem
java.lang.Object
org.drools.repository.Item
org.drools.repository.StateItem
public class StateItem
- extends Item
The StateItem represents the status of an asset.
An asset can only be in 1 state at a time. Kind of for workflow.
Constructor Summary |
StateItem(RulesRepository rulesRepository,
javax.jcr.Node node)
Constructs an object of type StateItem corresponding the specified node |
DRAFT_STATE_NAME
public static final String DRAFT_STATE_NAME
- All assets when created, or a new version saved, have a status of Draft.
- See Also:
- Constant Field Values
STATE_NODE_TYPE_NAME
public static final String STATE_NODE_TYPE_NAME
- The name of the state node type
- See Also:
- Constant Field Values
StateItem
public StateItem(RulesRepository rulesRepository,
javax.jcr.Node node)
throws RulesRepositoryException
- Constructs an object of type StateItem corresponding the specified node
- Parameters:
rulesRepository
- the rulesRepository that instantiated this objectnode
- the node to which this object corresponds
- Throws:
RulesRepositoryException
equals
public boolean equals(Object in)
- Overrides:
equals
in class Item
toString
public String toString()
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Item
remove
public void remove()
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.