当前页面:
在线文档首页 >
JBoss JBPM 3.0.4 API 英文版文档
GraphElement (jbpm-3.0.4) - JBoss JBPM 3.0.4 API 英文版文档
org.jbpm.graph.def
Class GraphElement
java.lang.Object
org.jbpm.graph.def.GraphElement
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- Node, ProcessDefinition, Task, Transition
- public abstract class GraphElement
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
name
protected java.lang.String name
processDefinition
protected ProcessDefinition processDefinition
events
protected java.util.Map events
exceptionHandlers
protected java.util.List exceptionHandlers
GraphElement
public GraphElement()
GraphElement
public GraphElement(java.lang.String name)
getSupportedEventTypes
public abstract java.lang.String[] getSupportedEventTypes()
- indicative set of event types supported by this graph element.
this is currently only used by the process designer to know which
event types to show on a given graph element. in process definitions
and at runtime, there are no contstraints on the event-types.
getEvents
public java.util.Map getEvents()
- gets the events, keyd by eventType (java.lang.String).
hasEvents
public boolean hasEvents()
getEvent
public Event getEvent(java.lang.String eventType)
hasEvent
public boolean hasEvent(java.lang.String eventType)
addEvent
public Event addEvent(Event event)
removeEvent
public Event removeEvent(Event event)
getExceptionHandlers
public java.util.List getExceptionHandlers()
- is the list of exception handlers associated to this graph element.
addExceptionHandler
public ExceptionHandler addExceptionHandler(ExceptionHandler exceptionHandler)
removeExceptionHandler
public void removeExceptionHandler(ExceptionHandler exceptionHandler)
reorderExceptionHandler
public void reorderExceptionHandler(int oldIndex,
int newIndex)
fireEvent
public void fireEvent(java.lang.String eventType,
ExecutionContext executionContext)
fireAndPropagateEvent
public void fireAndPropagateEvent(java.lang.String eventType,
ExecutionContext executionContext)
raiseException
public void raiseException(java.lang.Throwable exception,
ExecutionContext executionContext)
throws DelegationException
- throws an ActionException if no applicable exception handler is found.
An ExceptionHandler is searched for in this graph element and then recursively up the
parent hierarchy.
If an exception handler is found, it is applied. If the exception handler does not
throw an exception, the exception is considered handled. Otherwise the search for
an applicable exception handler continues where it left of with the newly thrown
exception.
- Throws:
DelegationException
findExceptionHandler
protected ExceptionHandler findExceptionHandler(java.lang.Throwable exception)
getParent
public GraphElement getParent()
getParents
public java.util.List getParents()
- Returns:
- all the parents of this graph element ordered by age.
getParentChain
public java.util.List getParentChain()
- Returns:
- this graph element plus all the parents ordered by age.
toString
public java.lang.String toString()
getId
public long getId()
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
getProcessDefinition
public ProcessDefinition getProcessDefinition()
setProcessDefinition
public void setProcessDefinition(ProcessDefinition processDefinition)
Version : jbpm-3.0.4