|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines a node element object in the Process Manager engine. An
INodeElement
object provides the engine with a consistent
interface to interact with different types of nodes available to the
process designer.
The node object serves as a container for the properties used to describe the node; all of the logic used by the engine (for instance, the steps needed to perform a work item) is contained in another set of classes separate from the node class called the work manager and work performer classes. These classes are not available to the user from the API.
IProcessMap
,
INotification
,
ITransition
Field Summary | |
static int |
EXECUTION_STAGE_COMPLETE
Node execution stage value for a work item that has successfully completed the verify stage, and is waiting to be completed by the node's work manager. |
static int |
EXECUTION_STAGE_MANAGE
Node execution stage value for a work item that needs to retry the node manager's manage method. |
static int |
EXECUTION_STAGE_PERFORM
Node execution stage value for a work item that has successfully completed the manage stage, and is waiting to be performed by the node's work performer. |
static int |
EXECUTION_STAGE_VERIFY
Node execution stage value for a work item that has successfully completed the perform stage, and is waiting to be verified by the node's work manager. |
Method Summary | |
void |
addNotification(INotification not)
Adds a notification to this node. |
void |
addTransition(ITransition tr)
Adds a transition to this node. |
INodeElement |
getExceptionNode()
Returns the exception node element associated with this node. |
java.lang.String |
getForkId()
Returns the node's fork id value. |
java.lang.String |
getPageDataModel()
Returns a string (in the format of a JavaScript hashtable definition) of the properties of this node element. |
int |
getPositionX()
Returns the x position of this node on the process map. |
int |
getPositionY()
Returns the y position of this node on the process map. |
IProcessMap |
getProcessMap()
Returns the process map to which this node belongs to. |
ITransition |
getTransition(java.lang.String name)
Returns the specified transition element. |
java.lang.String |
getType()
Returns the type of node. |
boolean |
isAutomated()
Returns true if the node is automated. |
boolean |
isDeferred()
Returns true if the node is deferred. |
java.util.Enumeration |
nextNodes(IWorkItem wi)
Returns a list of the nodes the next set of work items should be created at following the completion of current work item. |
java.util.Enumeration |
notifications()
Returns the list of notifications attached to this node. |
void |
setClassName(java.lang.String className)
Sets class id value of the node's implementation class. |
void |
setForkId(java.lang.String forkId)
Sets the node's fork id value. |
java.util.Enumeration |
transitions()
Returns the list of transitions that extend from this node. |
Methods inherited from interface com.netscape.pm.model.IPMElement |
dumpState, getDescription, getName, getParent, getPrettyName, getProperty, isLocked, lockObject, postCreation, setParent, setProperties, toString |
Field Detail |
public static final int EXECUTION_STAGE_MANAGE
manage
method. A work item will only
have this value as its node execution stage iff the work item is
in an exception state.IPMApplication.execute(com.netscape.pm.model.IWorkItem)
public static final int EXECUTION_STAGE_PERFORM
IPMApplication.execute(com.netscape.pm.model.IWorkItem)
public static final int EXECUTION_STAGE_VERIFY
IPMApplication.execute(com.netscape.pm.model.IWorkItem)
public static final int EXECUTION_STAGE_COMPLETE
IPMApplication.execute(com.netscape.pm.model.IWorkItem)
Method Detail |
public java.lang.String getForkId()
The fork id value is used by the Process Manager engine to determine a work item's siblings (that is, the other work items that are positioned at the same depth level). All nodes not contained within a parallel block have a fork id value of 0. Those within a parallel block have the fork id value of the AndSplit appended with the split id value of the AndSplit node. The AndSplit and AndJoin node have the same fork id value as those nodes contained within the parallel block.
public void setForkId(java.lang.String forkId) throws PMException
forkId
- the node's fork id valuePMException
- if this object has been lockedIPMElement.lockObject()
public java.lang.String getType()
public void setClassName(java.lang.String className) throws PMException
className
- the node's implementation class idPMException
- if this object has been lockedIPMElement.lockObject()
public int getPositionX()
public int getPositionY()
public java.util.Enumeration transitions()
ITransition
public ITransition getTransition(java.lang.String name) throws PMException
name
- the name of the transition to returnname
.PMException
- if no such transition element has been bound
to this node element.ITransition
public void addTransition(ITransition tr) throws PMException
Users should note that as a part of the node creation procedure, this object is locked to prevent run-time changes to its definition; hence, any calls to this method during run-time will result in an exception being thrown.
tr
- the transition element to bind to this node elementPMException
- if this object has been lockedIPMElement.lockObject()
,
ITransition
public java.util.Enumeration notifications()
INotification
public void addNotification(INotification not) throws PMException
not
- the notification element to bind to this node elementPMException
- if this object has been lockedIPMElement.lockObject()
,
INotification
public IProcessMap getProcessMap()
IProcessMap
public boolean isAutomated() throws PMException
true
if the node is automated;
false
otherwise.PMException
- if there is a problem with fetching the
work performer associated with this node.IProcessMap.automatedNodes()
public boolean isDeferred() throws PMException
true
if the node is deferred;
false
otherwise.PMException
- if there is a problem with fetching the
work performer associated with this node.isAutomated()
public INodeElement getExceptionNode() throws PMException
PMException
- if there is no exception node associated
with this node.INodeElement
public java.util.Enumeration nextNodes(IWorkItem wi) throws PMException
wi
- the current work itemPMException
- if there is a problem with determining
whether the work item can follow the
transitions extending from this node.ITransition.allows(com.netscape.pm.model.IWorkItem)
,
INodeElement
,
IWorkItem
public java.lang.String getPageDataModel()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |